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

Method test_rsplit_bytearray

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

Source from the content-addressed store, hash-verified

2029 self.assertEqual(b'a b'.split(memoryview(b' ')), [b'a', b'b'])
2030
2031 def test_rsplit_bytearray(self):
2032 self.assertEqual(b'a b'.rsplit(memoryview(b' ')), [b'a', b'b'])
2033
2034 def test_return_self(self):
2035 # bytearray.replace must always return a new bytearray

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
rsplitMethod · 0.45

Tested by

no test coverage detected