From 70c551028f423468439b5291c7515f58a8cc4254 Mon Sep 17 00:00:00 2001 From: Franz Haas Date: Sun, 10 Nov 2024 20:05:33 +0100 Subject: [PATCH] - one more neg unit test for opening sockets --- tests/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/__init__.py b/tests/__init__.py index 064cfb1..81d6d5d 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -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) + +