Exemplo n.º 1
0
 def test_unicode(self):
     split = split_original(u'photo.jpg')
     self.assertEqual(split['base'], 'photo')
     self.assertEqual(split['ext'], 'jpg')
Exemplo n.º 2
0
 def test_multiple_dots(self):
     split = split_original('photo.photo.photo.jpg')
     self.assertEqual(split['base'], 'photo.photo.photo')
     self.assertEqual(split['ext'], 'jpg')
Exemplo n.º 3
0
 def test_string(self):
     split = split_original('photo.jpg')
     self.assertEqual(split['base'], 'photo')
     self.assertEqual(split['ext'], 'jpg')
Exemplo n.º 4
0
 def test_no_extension(self):
     split = split_original('photo')
     self.assertEqual(split['base'], 'photo')
     self.assertEqual(split['ext'], '')
Exemplo n.º 5
0
 def test_unicode(self):
     split = split_original(u'photo.jpg')
     self.assertEqual(split['base'], 'photo')
     self.assertEqual(split['ext'], 'jpg')
Exemplo n.º 6
0
 def test_string(self):
     split = split_original('photo.jpg')
     self.assertEqual(split['base'], 'photo')
     self.assertEqual(split['ext'], 'jpg')
Exemplo n.º 7
0
 def test_multiple_dots(self):
     split = split_original('photo.photo.photo.jpg')
     self.assertEqual(split['base'], 'photo.photo.photo')
     self.assertEqual(split['ext'], 'jpg')
Exemplo n.º 8
0
 def test_no_extension(self):
     split = split_original('photo')
     self.assertEqual(split['base'], 'photo')
     self.assertEqual(split['ext'], '')