def test_fileutils(self): self.assertEqual(file_utils.file_suffix('tiikerikakku.JPG'),'jpg') self.assertEqual(file_utils.file_suffix('kakku.jpg'),'jpg') self.assertEqual(file_utils.file_suffix('.jpg'),'jpg')
def test_fileutils_file_suffix(self): file_utils.file_suffix('') file_utils.file_suffix('.jpg')