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