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

Method test_rpartition

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

Source from the content-addressed store, hash-verified

913 self.assertEqual(b.partition(b'w'), (b'mississippi', b'', b''))
914
915 def test_rpartition(self):
916 b = self.type2test(b'mississippi')
917 self.assertEqual(b.rpartition(b'ss'), (b'missi', b'ss', b'ippi'))
918 self.assertEqual(b.rpartition(b'i'), (b'mississipp', b'i', b''))
919 self.assertEqual(b.rpartition(b'w'), (b'', b'', b'mississippi'))
920
921 def test_partition_string_error(self):
922 self.assertRaises(TypeError, self.type2test(b'a b').partition, ' ')

Callers

nothing calls this directly

Calls 3

type2testMethod · 0.80
assertEqualMethod · 0.45
rpartitionMethod · 0.45

Tested by

no test coverage detected