예제 #1
0
 def test_mime(self):
     self.assertEqual(utils.mime('test.txt'), 'text/plain')
     self.assertIsNone(utils.mime('test'))
예제 #2
0
 def test_mime(self):
     assert utils.mime('test.txt') == 'text/plain'
     assert utils.mime('test') is None
예제 #3
0
 def test_mime(self):
     self.assertEqual(utils.mime('test.txt'), 'text/plain')
     self.assertIsNone(utils.mime('test'))
예제 #4
0
 def test_mime(self):
     assert utils.mime('test.txt') == 'text/plain'
     assert utils.mime('test') is None