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