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

Method test_partition

Lib/test/test_bytes.py:910–913  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

908 self.assertEqual(b.rsplit(), [b'\x1c\x1d\x1e\x1f'])
909
910 def test_partition(self):
911 b = self.type2test(b'mississippi')
912 self.assertEqual(b.partition(b'ss'), (b'mi', b'ss', b'issippi'))
913 self.assertEqual(b.partition(b'w'), (b'mississippi', b'', b''))
914
915 def test_rpartition(self):
916 b = self.type2test(b'mississippi')

Callers

nothing calls this directly

Calls 3

type2testMethod · 0.80
assertEqualMethod · 0.45
partitionMethod · 0.45

Tested by

no test coverage detected