mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Add restriction check of log call when only general error happens
This commit is contained in:
parent
9a187bfb3a
commit
50d3ce711e
@ -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] == {}
|
||||
|
Loading…
Reference in New Issue
Block a user