Exemplo n.º 1
0
 def test_unknownfile(self):
     assert get_mimetype('unknown.type') == 'application/octet-stream'
Exemplo n.º 2
0
 def test_jpgfile(self):
     assert get_mimetype('file.jpg') == 'image/jpeg'
Exemplo n.º 3
0
 def test_zipfile(self):
     assert get_mimetype('file.zip') == 'application/zip'
Exemplo n.º 4
0
 def test_nofile(self):
     assert get_mimetype('not-a-file') == 'application/octet-stream'
Exemplo n.º 5
0
 def test_txtfile(self):
     assert get_mimetype('file.txt') == 'text/plain'
Exemplo n.º 6
0
 def test_unknownfile(self):
     assert get_mimetype('unknown.type') == 'application/octet-stream'
Exemplo n.º 7
0
 def test_nofilename(self):
     assert get_mimetype(None) == 'application/octet-stream'
Exemplo n.º 8
0
 def test_zipfile(self):
     assert get_mimetype('file.zip') == 'application/zip'
Exemplo n.º 9
0
 def test_jpgfile(self):
     assert get_mimetype('file.jpg') == 'image/jpeg'
Exemplo n.º 10
0
 def test_txtfile(self):
     assert get_mimetype('file.txt') == 'text/plain'
Exemplo n.º 11
0
 def test_nofile(self):
     assert get_mimetype('not-a-file') == 'application/octet-stream'
Exemplo n.º 12
0
 def test_nofilename(self):
     assert get_mimetype(None) == 'application/octet-stream'