def test_eval(self):
     my_mock = Metric('test')
     my_mock.eval = Mock(return_value=None)
     metric = MetricList([my_mock])
     metric.eval()
     my_mock.eval.assert_called_once()
Exemple #2
0
 def test_eval(self):
     my_mock = Metric('test')
     my_mock.eval = Mock(return_value=None)
     metric = MetricList([my_mock])
     metric.eval()
     self.assertEqual(my_mock.eval.call_count, 1)