def test_get_end_time(self):
"""Test that a valid dim_configs is accepted."""
self.config.dims["time"].update({
"index_by": "time"
})
a = InputFileNode(self.config, another_input_file)
end_found = num2date(a.get_last_of_index_by(self.config.dims["time"]),
"seconds since 2000-01-01 12:00:00")
self.assertEqual(end_found, datetime(2017, 4, 14, 20, 28, 59, 800611))
评论列表
文章目录