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,7 +63,8 @@ class ConfigurationOptionsTestCase(test.CdistTestCase):
|
|||
),
|
||||
)
|
||||
for currval, newval, update_appends, expected in test_cases:
|
||||
self.assertEqual(option.update_value(currval, newval,
|
||||
self.assertEqual(
|
||||
option.update_value(currval, newval,
|
||||
update_appends=update_appends),
|
||||
expected)
|
||||
|
||||
|
|
Loading…
Reference in a new issue