Exemple #1
0
 def test_extension_zip(self):
     filename = 'fichier.zip'
     self.assertEqual('zip', extension(filename))
Exemple #2
0
 def test_null_path(self):
     filename = ''
     self.assertEqual(None, extension(filename))
Exemple #3
0
 def test_multiple_extension(self):
     filename = 'fichier.test.zip.tar'
     self.assertEqual('tar', extension(filename))
Exemple #4
0
 def test_path_extension(self):
     filename = '/path/to/a/file.tar'
     self.assertEqual('tar', extension(filename))
Exemple #5
0
 def test_none_extension(self):
     filename = 'fichier'
     self.assertEqual(None, extension(filename))