MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_partition

Method test_partition

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

Source from the content-addressed store, hash-verified

821 self.assertEqual(b.rsplit(), [b'\x1c\x1d\x1e\x1f'])
822
823 def test_partition(self):
824 b = self.type2test(b'mississippi')
825 self.assertEqual(b.partition(b'ss'), (b'mi', b'ss', b'issippi'))
826 self.assertEqual(b.partition(b'w'), (b'mississippi', b'', b''))
827
828 def test_rpartition(self):
829 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