예제 #1
0
 def test_zip(self):
     self.assertEqual(get_extension('archive.zip'), 'zip')
예제 #2
0
 def test_xhtml(self):
     self.assertEqual(get_extension('index.xhtml'), 'xhtml')
예제 #3
0
 def test_gzipped_tarball(self):
     self.assertEqual(get_extension('archive.tar.gz'), 'gz')
예제 #4
0
 def test_jpeg(self):
     self.assertEqual(get_extension('image.jpeg'), 'jpeg')
 def test_gzipped_tarball(self):
     self.assertEqual(get_extension('archive.tar.gz'), 'gz')
 def test_xhtml(self):
     self.assertEqual(get_extension('index.xhtml'), 'xhtml')
 def test_jpeg(self):
     self.assertEqual(get_extension('image.jpeg'), 'jpeg')
 def test_zip(self):
     self.assertEqual(get_extension('archive.zip'), 'zip')