diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2021-11-28 17:33:53 -0600 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2021-11-28 17:33:53 -0600 |
| commit | e955eccf80752d269dcd2031d71f7a9d9199201a (patch) | |
| tree | 6932c9b554231c6f340a62ffec9b7bff00229c76 /tests | |
| parent | Update pre-commit hooks (diff) | |
| download | lirc-e955eccf80752d269dcd2031d71f7a9d9199201a.zip | |
Allow `connection` to be any AbstractConnection
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_client.py | 6 |
1 files changed, 3 insertions, 3 deletions
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(): |