def test_proper_export_format(self): out = writer.generate_metric_information(self.evaluation) self.assertTrue(type(out) == type(list())) for name in out: self.assertTrue(type(name) == type(str()))
def test_empty_metrics_in_evaluation(self): new_eval = Evaluation(None, [], []) out = writer.generate_metric_information(new_eval) self.assertTrue(type(out) == type(list())) self.assertTrue(len(out) == 0)
def test_proper_metric_name_export(self): out = writer.generate_metric_information(self.evaluation) self.assertTrue(self.bias.__class__.__name__ in out) self.assertTrue(self.tmp_std_dev.__class__.__name__ in out)