Ejemplo n.º 1
0
 def test_no_tzinfo(self):
     """no_tzinfo should have known output"""
     dt = datetime.datetime(2000, 1, 1, tzinfo=datetime.tzinfo("MST"))
     self.assertEqual(dt.replace(tzinfo=None), t.no_tzinfo(dt))
     ans = [datetime.datetime(2000, 1, 1)] * 10
     self.assertEqual(ans, t.no_tzinfo([dt] * 10))
Ejemplo n.º 2
0
 def test_no_tzinfo(self):
     """no_tzinfo should have known output"""
     dt = datetime.datetime(2000, 1, 1, tzinfo=datetime.tzinfo('MST'))
     self.assertEqual(dt.replace(tzinfo=None), t.no_tzinfo(dt))
     ans = [datetime.datetime(2000, 1, 1)] * 10
     self.assertEqual(ans, t.no_tzinfo([dt] * 10))