예제 #1
0
파일: test_util.py 프로젝트: oduerr/wradlib
 def test_from_to(self):
     out = util.from_to("2000-01-01 00:00:00", "2000-01-02 00:00:00", 86400)
     shouldbe = [
         dt.datetime(2000, 1, 1, 0, 0),
         dt.datetime(2000, 1, 2, 0, 0)
     ]
     self.assertEqual(out, shouldbe)
예제 #2
0
 def test_from_to(self):
     out = util.from_to("2000-01-01 00:00:00",
                        "2000-01-02 00:00:00",
                        86400)
     shouldbe = [dt.datetime(2000, 1, 1, 0, 0),
                 dt.datetime(2000, 1, 2, 0, 0)]
     self.assertEqual(out, shouldbe)