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

Method test_str

Lib/test/test_email/test_headerregistry.py:85–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83class TestBaseHeaderFeatures(TestHeaderBase):
84
85 def test_str(self):
86 h = self.make_header('subject', 'this is a test')
87 self.assertIsInstance(h, str)
88 self.assertEqual(h, 'this is a test')
89 self.assertEqual(str(h), 'this is a test')
90
91 def test_substr(self):
92 h = self.make_header('subject', 'this is a test')

Callers

nothing calls this directly

Calls 4

strFunction · 0.85
make_headerMethod · 0.80
assertIsInstanceMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected