Esempio n. 1
0
 def test_get_dirname_of_datetime(self):
     date = datetime.datetime(2015, 5, 11, 10, 33, 23)
     folder = Console.get_dirname_of_datetime(date)
     folder_should_be = "2015-05-11_10:33:23"
     self.assertEqual(folder, folder_should_be)
Esempio n. 2
0
 def test_dirname_and_datetime_consistency(self):
     folder_should_be = "2015-05-11_10:33:23"
     self.assertEqual(
         Console.get_dirname_of_datetime(
             Console.get_datetime_of_dirname(folder_should_be)),
         folder_should_be)