summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2016-05-10 15:16:05 -0700
committerJoshua Harlow <harlowja@gmail.com>2016-05-10 15:16:05 -0700
commit67e506a50dae2b0c1a806f482670b864e84809ae (patch)
tree34b91442c66fcecfd4db56386d7de5d8d0f207ab
parentc5eb65ed705475640fce1025c74a54052c6e9731 (diff)
downloadvyos-cloud-init-67e506a50dae2b0c1a806f482670b864e84809ae.tar.gz
vyos-cloud-init-67e506a50dae2b0c1a806f482670b864e84809ae.zip
Use lstrip for easier viewing of test expected result
-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):