diff options
| author | Scott Moser <smoser@ubuntu.com> | 2012-11-13 08:56:04 -0500 |
|---|---|---|
| committer | Scott Moser <smoser@ubuntu.com> | 2012-11-13 08:56:04 -0500 |
| commit | f8af532a6bb13332b702e943e0a4247256268fa1 (patch) | |
| tree | d4ff5e2131dc4a8de5836f641bd9f5d32d971caa /tests/unittests/test_distros/test_netconfig.py | |
| parent | 546b9444158d00875100fdd523fccae76226f346 (diff) | |
| parent | c26b0674aa2ef31c7c3f7a0392044382cf6a452f (diff) | |
| download | vyos-cloud-init-f8af532a6bb13332b702e943e0a4247256268fa1.tar.gz vyos-cloud-init-f8af532a6bb13332b702e943e0a4247256268fa1.zip | |
merge from trunk
Diffstat (limited to 'tests/unittests/test_distros/test_netconfig.py')
| -rw-r--r-- | tests/unittests/test_distros/test_netconfig.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/unittests/test_distros/test_netconfig.py b/tests/unittests/test_distros/test_netconfig.py index 55765f0c..9763b14b 100644 --- a/tests/unittests/test_distros/test_netconfig.py +++ b/tests/unittests/test_distros/test_netconfig.py @@ -9,6 +9,8 @@ from cloudinit import helpers from cloudinit import settings from cloudinit import util +from cloudinit.distros.parsers.sys_conf import SysConf + from StringIO import StringIO @@ -83,9 +85,8 @@ class TestNetCfgDistro(MockerTestCase): self.assertEquals(write_buf.mode, 0644) def assertCfgEquals(self, blob1, blob2): - cfg_tester = distros.rhel.QuotingConfigObj - b1 = dict(cfg_tester(blob1.strip().splitlines())) - b2 = dict(cfg_tester(blob2.strip().splitlines())) + b1 = dict(SysConf(blob1.strip().splitlines())) + b2 = dict(SysConf(blob2.strip().splitlines())) self.assertEquals(b1, b2) for (k, v) in b1.items(): self.assertIn(k, b2) |
