def test_delete_repository(self, containerregistry_endpoint, containerregistry_resource_group):
        self.import_image(containerregistry_endpoint, HELLO_WORLD, [TO_BE_DELETED])
        client = self.create_registry_client(containerregistry_endpoint)

        client.delete_repository(TO_BE_DELETED)

        for repo in client.list_repository_names():
            if repo == TO_BE_DELETED:
                raise ValueError("Repository not deleted")