Пример #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