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