def test_zip(self): self.assertEqual(get_extension('archive.zip'), 'zip')
def test_xhtml(self): self.assertEqual(get_extension('index.xhtml'), 'xhtml')
def test_gzipped_tarball(self): self.assertEqual(get_extension('archive.tar.gz'), 'gz')
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')