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:
Michael Lustfield 2016-12-02 13:34:31 -06:00 committed by GitHub
parent 88f9d9f22c
commit 32a1374748

View file

@ -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'))