예제 #1
0
 def test_customFormat_6(self):
     self.assertEqual(dirformatter.createdirpath(
         'yyyy\\mm\\dd', self.tstamp),
         '2013/07/03')
예제 #2
0
 def test_customFormat_4(self):
     self.assertEqual(dirformatter.createdirpath(
         'yyyymmdd', self.tstamp,
         '/Users/shireenrao/Pictures'),
         '/Users/shireenrao/Pictures/20130703')
예제 #3
0
 def test_customFormat_5(self):
     self.assertEqual(dirformatter.createdirpath(
         'yyyymmdd', self.tstamp),
         '20130703')
예제 #4
0
 def test_customFormat_1(self):
     self.assertEqual(dirformatter.createdirpath(
         'yyyy/yyyy_mm_dd', self.tstamp), '2013/2013_07_03')
예제 #5
0
 def test_customFormat_3(self):
     self.assertEqual(dirformatter.createdirpath(
         'MyPics/yyyy/yyyy_mm_dd', self.tstamp,
         '/Users/shireenrao/Pictures'),
         '/Users/shireenrao/Pictures/MyPics/2013/2013_07_03')
예제 #6
0
 def test_customFormat_6(self):
     self.assertEqual(
         dirformatter.createdirpath('yyyy\\mm\\dd', self.tstamp),
         '2013/07/03')
예제 #7
0
 def test_DefaultFormat(self):
     self.assertEqual(
         dirformatter.createdirpath('yyyy/mmmm/yyyy_mm_dd', self.tstamp),
                      '2013/July/2013_07_03')
예제 #8
0
 def test_customFormat_5(self):
     self.assertEqual(dirformatter.createdirpath('yyyymmdd', self.tstamp),
                      '20130703')
예제 #9
0
 def test_customFormat_4(self):
     self.assertEqual(
         dirformatter.createdirpath('yyyymmdd', self.tstamp,
                                    '/Users/shireenrao/Pictures'),
         '/Users/shireenrao/Pictures/20130703')
예제 #10
0
 def test_customFormat_3(self):
     self.assertEqual(
         dirformatter.createdirpath('MyPics/yyyy/yyyy_mm_dd', self.tstamp,
                                    '/Users/shireenrao/Pictures'),
         '/Users/shireenrao/Pictures/MyPics/2013/2013_07_03')
예제 #11
0
 def test_customFormat_1(self):
     self.assertEqual(
         dirformatter.createdirpath('yyyy/yyyy_mm_dd', self.tstamp),
         '2013/2013_07_03')
예제 #12
0
 def test_DefaultFormat(self):
     self.assertEqual(
         dirformatter.createdirpath('yyyy/mmmm/yyyy_mm_dd', self.tstamp),
         '2013/July/2013_07_03')