@add_fixtures(['test_scmtools'])
    def test_delete_with_review_requests(self):
        self._login_user(admin=True)

        group = Group.objects.create(name='test-group', invite_only=True)
        group.users.add(self.user)

        repository = self.create_repository()
        request = ReviewRequest.objects.create(self.user, repository)
        request.target_groups.add(group)

        self.api_delete(get_review_group_item_url('test-group'),
                        expected_status=204)

        request = ReviewRequest.objects.get(pk=request.id)
        self.assertEqual(request.target_groups.count(), 0)

    #
    # HTTP GET tests
    #
Testing the DELETE groups/<id>/ API with existing review requests
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/tests/test_review_group.py/ResourceItemTests.test_delete_with_review_requests