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

Method assertNotStartsWith

Lib/test/support/testcase.py:45–48  ·  view source on GitHub ↗
(self, s, prefix, msg=None)

Source from the content-addressed store, hash-verified

43 self.fail(self._formatMessage(msg, standardMsg))
44
45 def assertNotStartsWith(self, s, prefix, msg=None):
46 if not s.startswith(prefix):
47 return
48 self.fail(self._formatMessage(msg, f"{s!r} starts with {prefix!r}"))
49
50 def assertEndsWith(self, s, suffix, msg=None):
51 if s.endswith(suffix):

Calls 3

_formatMessageMethod · 0.80
startswithMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected