def test_pass_datetime_non_utc(self):
"""
The incoming value is a datetime object that is already set to
a non-UTC timezone.
"""
self.assertFilterPasses(
datetime(2015, 6, 27, 10, 6, 32, tzinfo=tzoffset('UTC-5',-5*3600)),
datetime(2015, 6, 27, 15, 6, 32, tzinfo=utc),
)
评论列表
文章目录