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

Method test_name_count

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

Source from the content-addressed store, hash-verified

215 pass
216
217 def test_name_count(self):
218 m = magic.Magic()
219 with open(os.path.join(self.TESTDATA_DIR, 'name_use.jpg'), 'rb') as f:
220 m.from_buffer(f.read())
221
222 def test_pathlike(self):
223 if sys.version_info < (3, 6):

Callers

nothing calls this directly

Calls 2

from_bufferMethod · 0.95
openFunction · 0.85

Tested by

no test coverage detected