MCPcopy Create free account
hub / github.com/ahupp/python-magic / test_getparam

Method test_getparam

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

Source from the content-addressed store, hash-verified

207 magic.magic_buffer = old
208
209 def test_getparam(self):
210 m = magic.Magic(mime=True)
211 try:
212 m.setparam(magic.MAGIC_PARAM_INDIR_MAX, 1)
213 self.assertEqual(m.getparam(magic.MAGIC_PARAM_INDIR_MAX), 1)
214 except NotImplementedError:
215 pass
216
217 def test_name_count(self):
218 m = magic.Magic()

Callers

nothing calls this directly

Calls 2

setparamMethod · 0.95
getparamMethod · 0.95

Tested by

no test coverage detected