示例#1
0
 def test_path_jpg(self):
     self.assertEqual(giraffe.path_to_format("foo/bar/baz/hello.jpg"), "jpg")
示例#2
0
 def test_filename_gif(self):
     self.assertEqual(giraffe.path_to_format("hello.gif"), "gif")
示例#3
0
 def test_filename_jpg(self):
     self.assertEqual(giraffe.path_to_format("hello.jpeg"), "jpg")
示例#4
0
 def test_path_jpg(self):
     self.assertEqual(giraffe.path_to_format("foo/bar/baz/hello.jpg"),
                      "jpg")
示例#5
0
 def test_filename_gif(self):
     self.assertEqual(giraffe.path_to_format("hello.gif"), "gif")
示例#6
0
 def test_filename_jpg(self):
     self.assertEqual(giraffe.path_to_format("hello.jpeg"), "jpg")