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

Method test_repr_null

Lib/test/test_capi/test_unicode.py:1784–1789  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1782 "var=long value 'repr'")
1783
1784 def test_repr_null(self):
1785 writer = self.create_writer(0)
1786 writer.write_utf8(b'var=', -1)
1787 writer.write_repr(NULL)
1788 self.assertEqual(writer.finish(),
1789 "var=<NULL>")
1790
1791 def test_write_char(self):
1792 writer = self.create_writer(0)

Callers

nothing calls this directly

Calls 4

create_writerMethod · 0.95
write_reprMethod · 0.45
assertEqualMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected