def test_timezone_is_formatted(self): ny_tz = pytz.timezone("America/New_York") ny = ny_tz.localize(datetime.datetime(2013, 12, 2, 12, 00, 00)) result = exporter.format_datetime(ny) # New York is -5GMT/UTC: eq_(result, '20131202T170000Z')
def test_missing_format_datetime_returns_undefined(self): result = exporter.format_datetime(None) eq_(result, None)