def test_outtrain_sibling(self): s = SkillSet() s.train(['athletics','jumping'], 10) s.train(['athletics','running'], 30) self.assertEqual(s.exp(['athletics','jumping']), 20)
def test_train_parent_twice(self): s = SkillSet() s.train(['athletics','running'], 10) s.train(['athletics','jumping'], 20) self.assertEqual(s.exp(['athletics']), 15)
def test_train_child_twice(self): s = SkillSet() s.train(['athletics','running'], 10) s.train(['athletics','running'], 50) self.assertEqual(s.exp(['athletics','running']), 60)
def test_train_twice(self): s = SkillSet() s.train(['running'], 10) s.train(['running'], 20) self.assertEqual(s.exp(['running']), 30)