@add_fixtures(['test_site'])
    def test_delete_empty_repository_with_site(self):
        self._login_user(local_site=True, admin=True)
        repo_id = self._delete_repository(True)
        self.assertRaises(Repository.DoesNotExist,
                          Repository.objects.get,
                          pk=repo_id)
Testing the DELETE repositories/<id>/ API
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/tests/test_repository.py/ResourceItemTests.test_delete_empty_repository_with_site