@add_fixtures(['test_site'])
    def test_delete_with_site(self):
        self._login_user(local_site=True, admin=True)
        repo_id = self._delete_repository(True, with_review_request=True)

        repo = Repository.objects.get(pk=repo_id)
        self.assertFalse(repo.visible)
Testing the DELETE repositories/<id>/ API with a local site
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/tests/test_repository.py/ResourceItemTests.test_delete_with_site