Add restriction check of log call when only general error happens

This commit is contained in:
Bo Maryniuk 2018-01-25 15:06:41 +01:00
parent 9a187bfb3a
commit 50d3ce711e

View File

@ -499,6 +499,7 @@ class SSDPClientTestCase(TestCase):
clnt._query = MagicMock()
clnt.log = MagicMock()
clnt.discover()
assert len(clnt.log.error.mock_calls) == 1
assert 'Error response from the service publisher' in clnt.log.error.call_args[0][0]
assert '10.10.10.10' == clnt.log.error.call_args[0][1]
assert clnt.log.error.call_args[1] == {}