Esempio n. 1
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)
Esempio n. 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)