예제 #1
0
 def test_mimetype_unknown(self):
     thumbnail = Thumbnail('test.foo', {'size': ['100', '100']})
     assert thumbnail.get_mimetype() == 'application/octet-stream'
예제 #2
0
 def test_mimetype(self):
     thumbnail = Thumbnail('test.jpg', {'size': ['100', '100']})
     assert thumbnail.get_mimetype() == 'image/jpeg'