Skip to content

Commit 3473a44

Browse files
committed
Add assert_ne in tests/4-use-godot-from-python/clodotest.py
1 parent 232b211 commit 3473a44

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/4-use-godot-from-python/clodotest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,11 @@ def assert_eq(got: Any, expected: Any) -> None:
245245
raise AssertionError(f"Expected {expected!r}, got {got!r}")
246246

247247

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+
248253
def assert_is(got: Any, expected: Any) -> None:
249254
if got is expected:
250255
raise AssertionError(f"Expected {expected!r}, got {got!r}")

0 commit comments

Comments
 (0)