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

Method assertNotEndsWith

Lib/test/support/testcase.py:56–59  ·  view source on GitHub ↗
(self, s, suffix, msg=None)

Source from the content-addressed store, hash-verified

54 self.fail(self._formatMessage(msg, standardMsg))
55
56 def assertNotEndsWith(self, s, suffix, msg=None):
57 if not s.endswith(suffix):
58 return
59 self.fail(self._formatMessage(msg, f"{s!r} ends with {suffix!r}"))
60
61
62class ExceptionIsLikeMixin:

Callers 3

test_parse_fragmentsMethod · 0.45
testAssertNotEndsWithMethod · 0.45

Calls 3

_formatMessageMethod · 0.80
endswithMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected