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))])
def test_fitness(self): self.assertEqual((0, ), dio.fitness(dio.SOLUTION))