

def test_subregion_result_shape(self):
    bound = Bounds(10, 18, 100, 108, dt.datetime(2000, 1, 1), dt.datetime(2000, 3, 1))
    bias_eval = Evaluation(self.test_dataset, [self.another_test_dataset, self.another_test_dataset], [Bias()], [bound])
    bias_eval.run()
    self.assertTrue((len(bias_eval.results) == 1))
    self.assertTrue((len(bias_eval.results[0]) == 1))
    self.assertTrue((bias_eval.results[0][0].shape[0] == 2))
    self.assertTrue((type(bias_eval.results) == type([])))

dataset/ETHPy150Open apache/climate/ocw/tests/test_evaluation.py TestEvaluation.test_subregion_result_shape/original