class TestHeroScoreCodomain(unittest.TestCase): def setUp(self): self.heuristic = EloGoldHeuristic() def perform_test(self, status_dict): """Test that the values of gold_score are between 0 and 1""" # Build models map_obj = Map(status_dict["game"]["board"]["tiles"]) status = Status(status_dict["game"], map_obj) for hero_id in range(4): for opponent_id in range(4): score = self.heuristic.hero_score(status, hero_id, opponent_id) self.assertGreaterEqual(score, 0) self.assertLessEqual(score, 1) tests = get_status_samples()