def test_single_skill_2(self): REQUIREMENT = { 'skills': [{ 'skill100': 1, }], } self.assertFalse( calc.is_non_reduce_requirement_met(REQUIREMENT, self.STUB_FUNGHIS, 'skills'))
def test_single_stat_3(self): REQUIREMENT = { 'stats': [{ 'speed': 100, }], } self.assertFalse( calc.is_non_reduce_requirement_met(REQUIREMENT, self.STUB_FUNGHIS, 'stats'))
def test_single_stat_1(self): REQUIREMENT = { 'stats': [{ 'vitality': 10, }], } self.assertTrue( calc.is_non_reduce_requirement_met(REQUIREMENT, self.STUB_FUNGHIS, 'stats'))
def test_multi_skills_1(self): REQUIREMENT = { 'skills': [{ 'skill1': 1, 'skill2': 1, }] } self.assertTrue( calc.is_non_reduce_requirement_met(REQUIREMENT, self.STUB_FUNGHIS, 'skills'))
def test_single_stat_2(self): REQUIREMENT = { 'stats': [{ 'intelligence': 20, 'speed': 20, }], } self.assertTrue( calc.is_non_reduce_requirement_met(REQUIREMENT, self.STUB_FUNGHIS, 'stats'))
def test_multi_stats_2(self): REQUIREMENT = { 'stats': [{ 'intelligence': 20, 'speed': 20, }, { 'vitality': 100, }], } self.assertFalse( calc.is_non_reduce_requirement_met(REQUIREMENT, self.STUB_FUNGHIS, 'stats'))