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

Method test_detect_from_filename

test/libmagic_test.py:25–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 self.assertIn(result.name, self.expected_name)
24
25 def test_detect_from_filename(self):
26 result = magic.detect_from_filename(self.filename)
27 self.assert_result(result)
28
29 def test_detect_from_fobj(self):
30

Callers

nothing calls this directly

Calls 1

assert_resultMethod · 0.95

Tested by

no test coverage detected