(self, s, suffix, msg=None)
| 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): |
| 52 | return |
| 53 | standardMsg = f"{s!r} doesn't end with {suffix!r}" |
| 54 | self.fail(self._formatMessage(msg, standardMsg)) |
| 55 | |
| 56 | def assertNotEndsWith(self, s, suffix, msg=None): |
| 57 | if not s.endswith(suffix): |
no test coverage detected