def test_get_invite_only_with_permission_denied_error(self):
        group = Group.objects.create(name='test-group', invite_only=True)

        rsp = self.api_get(get_review_group_item_url(group.name),
                           expected_status=403)
        self.assertEqual(rsp['stat'], 'fail')
        self.assertEqual(rsp['err']['code'], PERMISSION_DENIED.code)

    #
    # HTTP PUT tests
    #
Testing the GET groups/<id>/ API
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/tests/test_review_group.py/ResourceItemTests.test_get_invite_only_with_permission_denied_error