Ejemplo n.º 1
0
 def test_time(self):
     self.assertEqual(1343911558.305793, humanize(1343911558.305793))
     self.assertEqual(format_time(1343911558.305793),
                      humanize(1343911558.305793, type='time'))
Ejemplo n.º 2
0
 def test_time(self):
     self.assertEqual(1343911558.305793, humanize(1343911558.305793))
     self.assertEqual(format_time(1343911558.305793),
                      humanize(1343911558.305793, type='time'))
Ejemplo n.º 3
0
 def test_time(self):
     from pytz import utc
     self.assertEqual(1343911558.305793, humanize(1343911558.305793))
     self.assertEqual(format_time(1343911558.305793, utc),
                      humanize(1343911558.305793, type='time'))