From e955eccf80752d269dcd2031d71f7a9d9199201a Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 28 Nov 2021 17:33:53 -0600 Subject: Allow `connection` to be any AbstractConnection --- tests/test_client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_client.py') diff --git a/tests/test_client.py b/tests/test_client.py index 237a038..e7b80d5 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -20,19 +20,19 @@ def test_that_custom_connections_can_be_used(mock_socket): assert client._Client__connection == connection -def test_that_custom_connection_that_is_not_a_lircd_connection_raises_error( +def test_that_custom_connection_that_is_not_an_abstract_connection_raises_error( mock_connection, ): """ lirc.Client.__init__ Ensure that passing in something that is not an instance of - LircdConnection raise a TypeError. + AbstractConnection raises a TypeError. """ with pytest.raises(TypeError) as error: Client(connection=Client(connection=mock_connection)) # SUT - assert "must be an instance of `LircdConnection`" in str(error) + assert "must be an instance of `AbstractConnection`" in str(error) def test_that_no_connection_passed_in_creates_default_one(): -- cgit v1.2.3