mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Corrects expected return value
Tests were failing because _parse_interfaces is returning the correct data per mocked data. The assertion was expecting the iface line to have been stripped.
This commit is contained in:
parent
88f9d9f22c
commit
32a1374748
1 changed files with 2 additions and 1 deletions
|
@ -163,7 +163,8 @@ class DebianIpTestCase(TestCase):
|
|||
MagicMock(return_value=mock_ret)):
|
||||
self.assertListEqual(debian_ip.get_interface('lo'),
|
||||
[u'auto lo\n',
|
||||
u'\n'])
|
||||
u'iface lo inet loopback\n',
|
||||
u'\n']
|
||||
|
||||
mock = MagicMock(side_effect=jinja2.exceptions.TemplateNotFound
|
||||
('error'))
|
||||
|
|
Loading…
Add table
Reference in a new issue