forked from ungleich-public/cdist
pep8
This commit is contained in:
parent
759a917da9
commit
5213f343c0
2 changed files with 5 additions and 4 deletions
|
@ -32,7 +32,7 @@ class Singleton(type):
|
|||
instance = None
|
||||
|
||||
def __call__(cls, *args, **kwargs):
|
||||
if 'singleton' in kwargs and kwargs['singleton'] == False:
|
||||
if 'singleton' in kwargs and not kwargs['singleton']:
|
||||
return super(Singleton, cls).__call__(*args, **kwargs)
|
||||
else:
|
||||
if not cls.instance:
|
||||
|
|
|
@ -63,9 +63,10 @@ class ConfigurationOptionsTestCase(test.CdistTestCase):
|
|||
),
|
||||
)
|
||||
for currval, newval, update_appends, expected in test_cases:
|
||||
self.assertEqual(option.update_value(currval, newval,
|
||||
update_appends=update_appends),
|
||||
expected)
|
||||
self.assertEqual(
|
||||
option.update_value(currval, newval,
|
||||
update_appends=update_appends),
|
||||
expected)
|
||||
|
||||
def test_StringOption(self):
|
||||
option = cc.StringOption('test')
|
||||
|
|
Loading…
Reference in a new issue