Пример #1
0
 def test_output_no_solution(self, _print):
     dio.output(self.instance)
     _print.assert_has_calls([mock.call(dio.BEST_INSTANCE_MSG, self.instance),
                             mock.call(dio.NO_SOLUTION_MSG,
                                       dio.fitness(self.instance))])
Пример #2
0
 def test_fitness(self):
     self.assertEqual((0, ), dio.fitness(dio.SOLUTION))