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

Method test_substring_empty

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

Source from the content-addressed store, hash-verified

1975 self.assertRaises(ValueError, writer.write_ucs4, NULL, -1)
1976
1977 def test_substring_empty(self):
1978 writer = self.create_writer(0)
1979 writer.write_substring("abc", 1, 1)
1980 self.assertEqual(writer.finish(), '')
1981
1982
1983@unittest.skipIf(ctypes is None, 'need ctypes')

Callers

nothing calls this directly

Calls 3

create_writerMethod · 0.95
assertEqualMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected