Skip to content

Commit

Permalink
- one more neg unit test for opening sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
franzhaas committed Nov 10, 2024
1 parent 885edb3 commit 70c5510
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ def test_impossible_params():
with pytest.raises(AssertionError) as excinfo:
robotframework_construct.robotframework_construct().construct_element_should_not_be_equal("a", {"a": [1]}, [1])
assert "observed value `[1]´ is not distinct to `[1]´ in `{'a': [1]}´ at `a´" == str(excinfo.value)

with pytest.raises(AssertionError) as excinfo:
robotframework_construct.robotframework_construct().open_socket("raw", 0,0)
assert "protocol should be either `TCP or `UDP´, but was `raw´" == str(excinfo.value)


0 comments on commit 70c5510

Please sign in to comment.