summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-09-21 15:12:11 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-09-21 15:12:11 -0700
commit009faa0546ffbcadbbcaa9692d6842890e6f2e10 (patch)
tree715d284470c0047a54a58d430de1317376557321 /tests
parent47d9df78264625207342e668a9120fa84b6ad355 (diff)
downloadvyos-cloud-init-009faa0546ffbcadbbcaa9692d6842890e6f2e10.tar.gz
vyos-cloud-init-009faa0546ffbcadbbcaa9692d6842890e6f2e10.zip
Fix some docs + pylint warnings + log on default created in the module.
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_distros/test_user_data_normalize.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/unittests/test_distros/test_user_data_normalize.py b/tests/unittests/test_distros/test_user_data_normalize.py
index caf479cd..d636bb84 100644
--- a/tests/unittests/test_distros/test_user_data_normalize.py
+++ b/tests/unittests/test_distros/test_user_data_normalize.py
@@ -78,21 +78,21 @@ class TestUGNormalize(MockerTestCase):
'default': True,
}
}
- ((users, def_user), groups) = distro.normalize_users_groups(ug_cfg)
+ ((_users, def_user), _groups) = distro.normalize_users_groups(ug_cfg)
self.assertEquals('bob', def_user['name'])
ug_cfg = {
'users': {
'default': 'yes',
}
}
- ((users, def_user), groups) = distro.normalize_users_groups(ug_cfg)
+ ((_users, def_user), _groups) = distro.normalize_users_groups(ug_cfg)
self.assertEquals('bob', def_user['name'])
ug_cfg = {
'users': {
'default': '1',
}
}
- ((users, def_user), groups) = distro.normalize_users_groups(ug_cfg)
+ ((_users, def_user), _groups) = distro.normalize_users_groups(ug_cfg)
self.assertEquals('bob', def_user['name'])
def test_users_simple_dict_no(self):
@@ -102,14 +102,14 @@ class TestUGNormalize(MockerTestCase):
'default': False,
}
}
- ((users, def_user), groups) = distro.normalize_users_groups(ug_cfg)
+ ((_users, def_user), _groups) = distro.normalize_users_groups(ug_cfg)
self.assertEquals({}, def_user)
ug_cfg = {
'users': {
'default': 'no',
}
}
- ((users, def_user), groups) = distro.normalize_users_groups(ug_cfg)
+ ((_users, def_user), _groups) = distro.normalize_users_groups(ug_cfg)
self.assertEquals({}, def_user)
def test_users_simple_csv(self):
@@ -117,7 +117,7 @@ class TestUGNormalize(MockerTestCase):
ug_cfg = {
'users': 'joe,bob',
}
- ((users, def_user), groups) = distro.normalize_users_groups(ug_cfg)
+ ((users, _def_user), _groups) = distro.normalize_users_groups(ug_cfg)
self.assertIn('joe', users)
self.assertIn('bob', users)
self.assertEquals({}, users['joe'])
@@ -131,7 +131,7 @@ class TestUGNormalize(MockerTestCase):
'bob'
],
}
- ((users, def_user), groups) = distro.normalize_users_groups(ug_cfg)
+ ((users, _def_user), _groups) = distro.normalize_users_groups(ug_cfg)
self.assertIn('joe', users)
self.assertIn('bob', users)
self.assertEquals({}, users['joe'])
@@ -144,7 +144,7 @@ class TestUGNormalize(MockerTestCase):
{'name': 'default', 'blah': True}
],
}
- ((users, def_user), groups) = distro.normalize_users_groups(ug_cfg)
+ ((users, def_user), _groups) = distro.normalize_users_groups(ug_cfg)
self.assertIn('bob', def_user['name'])
self.assertEquals(",".join(distro.get_default_user_groups()),
def_user['config']['groups'])
@@ -159,7 +159,7 @@ class TestUGNormalize(MockerTestCase):
'default',
],
}
- ((users, def_user), groups) = distro.normalize_users_groups(ug_cfg)
+ ((users, def_user), _groups) = distro.normalize_users_groups(ug_cfg)
self.assertIn('bob', def_user['name'])
self.assertEquals(",".join(distro.get_default_user_groups()),
def_user['config']['groups'])
@@ -174,7 +174,7 @@ class TestUGNormalize(MockerTestCase):
{'name': 'bob'},
],
}
- ((users, def_user), groups) = distro.normalize_users_groups(ug_cfg)
+ ((users, _def_user), _groups) = distro.normalize_users_groups(ug_cfg)
self.assertIn('joe', users)
self.assertIn('bob', users)
self.assertEquals({'tr_me': True}, users['joe'])
@@ -188,7 +188,7 @@ class TestUGNormalize(MockerTestCase):
{'name': 'bob'},
],
}
- ((users, def_user), groups) = distro.normalize_users_groups(ug_cfg)
+ ((users, _def_user), _groups) = distro.normalize_users_groups(ug_cfg)
self.assertIn('joe', users)
self.assertIn('bob', users)
self.assertEquals({}, users['joe'])