def test_integrity(self):
        Group.objects.create(name='jack')
        try:
            Team.objects.convert_from_user(self.jack)
        except __HOLE__:
            pass
        else:
            self.fail("Cannot allow to convert user into team if there is "
                      "a group with same name already persisted")
dataset/ETHPy150Open lukaszb/django-projector/projector/tests/test_user2team_conversion.py/UserToTeamConversion.test_integrity