summaryrefslogtreecommitdiff
path: root/tests/unittests/test_net.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/test_net.py')
-rw-r--r--tests/unittests/test_net.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unittests/test_net.py b/tests/unittests/test_net.py
index 37b48efb..005957de 100644
--- a/tests/unittests/test_net.py
+++ b/tests/unittests/test_net.py
@@ -128,13 +128,14 @@ class TestEniNetRendering(TestCase):
with open(os.path.join(render_dir, 'interfaces')) as fh:
contents = fh.read()
- expected = """auto lo
+ expected = """
+auto lo
iface lo inet loopback
auto eth1000
iface eth1000 inet dhcp
"""
- self.assertEqual(expected, contents)
+ self.assertEqual(expected.lstrip(), contents.lstrip())
class TestNetConfigParsing(TestCase):