def METHOD_NAME(self):
    # GIVEN
    gcs_object = self._monkeypatch_gcsobject(GCSObject('test/dir/file.jpg'))
    gcs_object.client.create_bucket('test')
    gcs_object.upload_from_string('content')
    # WHEN
    gcs_object.rm()
    # THEN
    dir_ = self._monkeypatch_gcsobject(self._monkeypatch_gcsobject(GCSObject('test/dir/')))
    self.assertEqual(dir_.size(), 0)