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

        rsp = self.api_get(get_review_group_item_url(group.name),
                           expected_mimetype=review_group_item_mimetype)
        self.assertEqual(rsp['stat'], 'ok')
        self.assertEqual(rsp['group']['invite_only'], True)
Testing the GET groups/<id>/ API with invite-only
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/tests/test_review_group.py/ResourceItemTests.test_get_invite_only