def test_datetime_from_simple_time_correct(self):
el = {u'update_time': u'2017-04-03 16:21:12'}
result = Organization.datetime_from_simple_time(el, u'update_time')
expected = datetime.datetime(2017, 4, 3, 16, 21, 12, 0, tzinfo=pytz.utc)
self.assertEquals(result, expected)
评论列表
文章目录