Example #1
0
 def test_utc(self):
     assert utils.is_aware(pytz.UTC.localize(datetime.now())) is True
Example #2
0
 def test_berlin(self):
     assert utils.is_aware(BERLIN.localize(datetime.now())) is True
Example #3
0
 def test_bogota(self):
     assert utils.is_aware(BOGOTA.localize(datetime.now())) is True
Example #4
0
 def test_naive(self):
     assert utils.is_aware(datetime.now()) is False