(thing1, thing2, *, error_message="")
| 94 | raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args)) |
| 95 | |
| 96 | def assert_not_equal(thing1, thing2, *, error_message=""): |
| 97 | if thing1 == thing2: |
| 98 | raise AssertionError(f"Both values are {thing1}{f', {error_message}' if error_message else ''}") |
| 99 | |
| 100 | |
| 101 | def assert_greater_than(thing1, thing2): |
no outgoing calls