def test_today_time_utc(): expected = datetime(2016, 6, 25, 13, 0, tzinfo=timezone.utc) actual = parse_datetime("13:00Z", now_fn=MOCK_NOW) assert expected == actual
def test_today_time_utc(self): expected = datetime(2016, 6, 25, 13, 0, tzinfo=timezone.utc) actual = parse_datetime('13:00Z', now_fn=MOCK_NOW) self.assertEqual(expected, actual)
def test_today_time_local(): expected = datetime(2016, 6, 25, 13, 0, tzinfo=MY_TIMEZONE) actual = parse_datetime("13:00", now_fn=MOCK_NOW) assert expected == actual
def test_today_time_local(self): expected = datetime(2016, 6, 25, 13, 0, tzinfo=MY_TIMEZONE) actual = parse_datetime('13:00', now_fn=MOCK_NOW) self.assertEqual(expected, actual)