def test_is_datetime_utc_given_utc_datetime_returns_true(self): # Arrange dt = datetime(2013, 1, 1, 1, 0, tzinfo=pytz.utc) # Act # Assert assert is_datetime_utc(dt) is True
def test_is_datetime_utc_given_tz_naive_datetime_returns_false(self): # Arrange dt = datetime(2013, 1, 1, 1, 0) # Act # Assert assert is_datetime_utc(dt) is False