def test_now_with_tz(self): t = Time.now(tz=timezone_us_eastern) self.assertIsInstance(t, Time) self.assertEqual(t.tzinfo, timezone_us_eastern)
def test_now_without_tz(self): t = Time.now() self.assertIsInstance(t, Time)
def test_now_with_tz(self): t = Time.now(tz=timezone_us_eastern) self.assertIsInstance(t, Time) self.assertEqual(t.tzinfo, timezone_us_eastern)
def test_now_without_tz(self): t = Time.now() self.assertIsInstance(t, Time)