예제 #1
0
파일: tests.py 프로젝트: quantum13/hgh
    def test_hero_update_race(self):
        """tests setting race based on race of units"""
        hero = Hero(user=self.user)
        hero.save()
        Unit(hero=hero,race='human').save()
        Unit(hero=hero,race='elf').save()
        Unit(hero=hero,race='elf').save()

        hero.update_race()


        assert hero.race == 'elf'