We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
assert_ne
tests/4-use-godot-from-python/clodotest.py
1 parent 232b211 commit 3473a44Copy full SHA for 3473a44
tests/4-use-godot-from-python/clodotest.py
@@ -245,6 +245,11 @@ def assert_eq(got: Any, expected: Any) -> None:
245
raise AssertionError(f"Expected {expected!r}, got {got!r}")
246
247
248
+def assert_ne(got: Any, expected_different: Any) -> None:
249
+ if got == expected_different:
250
+ raise AssertionError(f"Expected different than {expected_different!r}")
251
+
252
253
def assert_is(got: Any, expected: Any) -> None:
254
if got is expected:
255
0 commit comments