Example #1
0
 def test_tz_or_local(self):
     assert timezone.tz_or_local() == timezone.local
     assert timezone.tz_or_local(timezone.utc)
Example #2
0
 def test_tz_or_local(self):
     assert timezone.tz_or_local() == timezone.local
     assert timezone.tz_or_local(timezone.utc)
Example #3
0
 def test_tz_or_local(self):
     self.assertEqual(timezone.tz_or_local(), timezone.local)
     self.assertTrue(timezone.tz_or_local(timezone.utc))