def MockCreateObjectWithMetadata(self, apitools_object, contents=''):
    """Creates an object without exercising the API directly."""
    assert apitools_object.bucket, 'No bucket specified for mock object'
    assert apitools_object.name, 'No object name specified for mock object'
    if self.buckets not in apitools_object.bucket:
      self.MockCreateBucket(apitools_object.bucket)
    return self.buckets[apitools_object.bucket].CreateObjectWithMetadata(
        apitools_object, contents=contents).root_object

  # pylint: disable=unused-argument
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/tests/mock_cloud_api.py/MockCloudApi.MockCreateObjectWithMetadata/swapped operands of `not in`