def test_delete_empty_repository(self):
        self._login_user(admin=True)
        repo_id = self._delete_repository(False)
        self.assertRaises(Repository.DoesNotExist,
                          Repository.objects.get,
                          pk=repo_id)
Testing the DELETE repositories/<id>/ API with no review requests
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/tests/test_repository.py/ResourceItemTests.test_delete_empty_repository