Esempio n. 1
0
 def test_format_timestamp_valid(self):
     """
     Tests that valid time stamp is returned in correct format
     """
     timestamp = '2013-10-29 18:36:11+00:00'
     match = '10-29-2013'
     self.assertEqual(bitmethods.format_timestamp(timestamp), match)
Esempio n. 2
0
 def test_format_timestamp_empty(self):
     """
     Tests that empty timestamp returns empty string
     """
     self.assertEqual(bitmethods.format_timestamp(''), '')