Exemplo n.º 1
0
 def test_parse_time_with_negative_timezone(self):
     time_str = 'Fri Nov 07 17:09:03 2014 -01:00'
     expected = datetime.datetime(2014, 11, 07, 18, 9, 3)
     actual = gitiles.parse_time(time_str)
     self.assertEqual(expected, actual)
Exemplo n.º 2
0
 def test_parse_time(self):
     time_str = 'Fri Nov 07 17:09:03 2014'
     expected = datetime.datetime(2014, 11, 07, 17, 9, 3)
     actual = gitiles.parse_time(time_str)
     self.assertEqual(expected, actual)
Exemplo n.º 3
0
 def test_parse_time(self):
     time_str = "Fri Nov 07 17:09:03 2014"
     expected = datetime.datetime(2014, 11, 07, 17, 9, 3)
     actual = gitiles.parse_time(time_str)
     self.assertEqual(expected, actual)
Exemplo n.º 4
0
 def test_parse_time_with_negative_timezone(self):
     time_str = "Fri Nov 07 17:09:03 2014 -01:00"
     expected = datetime.datetime(2014, 11, 07, 18, 9, 3)
     actual = gitiles.parse_time(time_str)
     self.assertEqual(expected, actual)
Exemplo n.º 5
0
 def test_parse_time_with_positive_timezone(self):
   time_str = 'Fri Nov 07 17:09:03 2014 +01:00'
   expected = datetime.datetime(2014, 11, 07, 16, 9, 3)
   actual = gitiles.parse_time(time_str)
   self.assertEqual(expected, actual)