def test_application_x(self): self.assertEqual(guess_file_icon('tagada.flac'), 'music')
def test_common_extensions(self): self.assertEqual(guess_file_icon('tagada.avi'), 'film') self.assertEqual(guess_file_icon('tagada.mkv'), 'film') self.assertEqual(guess_file_icon('tagada.mp3'), 'music')
def test_uppercase(self): self.assertEqual(guess_file_icon('tagada.MP3'), 'music')