MCPcopy Index your code
hub / github.com/python/cpython / test_HeaderRegistry

Method test_HeaderRegistry

Lib/test/test_email/test_email.py:5831–5834  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5829class TestHeaderRegistry(TestEmailBase):
5830 # See issue gh-93010.
5831 def test_HeaderRegistry(self):
5832 reg = HeaderRegistry()
5833 a = reg('Content-Disposition', 'attachment; 0*00="foo"')
5834 self.assertIsInstance(a.defects[0], errors.InvalidHeaderDefect)
5835
5836if __name__ == '__main__':
5837 unittest.main()

Callers

nothing calls this directly

Calls 2

HeaderRegistryClass · 0.90
assertIsInstanceMethod · 0.80

Tested by

no test coverage detected