def METHOD_NAME(self):
    for key_name in ["a", "a/b", "b"]:
        key = self.bucket.new_key(key_name)
        key.set_contents_from_string('this is a test')
    # First delete all "files": "a" and "b"
    result = self.bucket.delete_keys(self.bucket.list(delimiter="/"))
    self.assertEqual(len(result.deleted), 2)
    # Using delimiter will cause 1 common prefix to be listed
    # which will be skipped as an error.
    self.assertEqual(len(result.errors), 1)
    self.assertEqual(result.errors[0].key, "a/")
    # Next delete any remaining objects: "a/b"
    result = self.bucket.delete_keys(self.bucket.list())
    self.assertEqual(len(result.deleted), 1)
    self.assertEqual(len(result.errors), 0)
    self.assertEqual(result.deleted[0].key, "a/b")