diff options
author | Sankar Tanguturi <stanguturi@stanguturi-rhel> | 2016-02-16 17:34:24 -0800 |
---|---|---|
committer | Sankar Tanguturi <stanguturi@stanguturi-rhel> | 2016-02-16 17:34:24 -0800 |
commit | 0ce71cb8975e19677eea415101e15da5f4095cd5 (patch) | |
tree | 7ba79660baedc87c86b6b9e98f9d13ce5a576367 /tests | |
parent | 39f668e5db8d09c46eee3a5df73a69f8d85ba489 (diff) | |
download | vyos-cloud-init-0ce71cb8975e19677eea415101e15da5f4095cd5.tar.gz vyos-cloud-init-0ce71cb8975e19677eea415101e15da5f4095cd5.zip |
- Used proper 4 space indentations for config_nic.py and nic.py
- Implemented the 'search_file' function using 'os.walk()'
- Fixed few variable names.
- Removed size() function in config_file.py
- Updated the test_config_file.py to use len() instead of .size()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/test_vmware_config_file.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittests/test_vmware_config_file.py b/tests/unittests/test_vmware_config_file.py index 51166dd7..d5c7367b 100644 --- a/tests/unittests/test_vmware_config_file.py +++ b/tests/unittests/test_vmware_config_file.py @@ -36,12 +36,12 @@ class TestVmwareConfigFile(unittest.TestCase): cf.clear() - self.assertEqual(0, cf.size(), "clear size") + self.assertEqual(0, len(cf), "clear size") cf._insertKey(" PASSWORD|-PASS ", " foo ") cf._insertKey("BAR", " ") - self.assertEqual(2, cf.size(), "insert size") + self.assertEqual(2, len(cf), "insert size") self.assertEqual('foo', cf["PASSWORD|-PASS"], "password") self.assertTrue("PASSWORD|-PASS" in cf, "hasPassword") self.assertFalse(cf.should_keep_current_value("PASSWORD|-PASS"), |