MCPcopy Index your code
hub / github.com/ahupp/python-magic / test_mime_encodings

Method test_mime_encodings

test/python_magic_test.py:162–167  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

160 raise unittest.SkipTest("Magic file doesn't return expected type.")
161
162 def test_mime_encodings(self):
163 m = magic.Magic(mime_encoding=True)
164 self.assert_values(m, {
165 'text-iso8859-1.txt': 'iso-8859-1',
166 'text.txt': 'us-ascii',
167 })
168
169 def test_errors(self):
170 m = magic.Magic()

Callers

nothing calls this directly

Calls 1

assert_valuesMethod · 0.95

Tested by

no test coverage detected