def test_mime(self): self.assertEqual(utils.mime('test.txt'), 'text/plain') self.assertIsNone(utils.mime('test'))
def test_mime(self): assert utils.mime('test.txt') == 'text/plain' assert utils.mime('test') is None