Correct the test code to remove 'pass' where it is not needed
'pass' is added on a valid function, which is not required for a stub function which has some implementation. Change-Id: I8c35790a8b2a378231df535663c3e6f3a5fe5491
This commit is contained in:
parent
ab0e0d433f
commit
34df7f5748
|
@ -1173,7 +1173,6 @@ class TestIfcfgNetConfigApply(base.TestCase):
|
|||
|
||||
def test_execute(*args, **kwargs):
|
||||
execute_strings.append(args[1])
|
||||
pass
|
||||
self.stubs.Set(NetConfig, 'execute', test_execute)
|
||||
|
||||
self.provider.noop = True
|
||||
|
@ -1187,7 +1186,6 @@ class TestIfcfgNetConfigApply(base.TestCase):
|
|||
|
||||
def test_execute(*args, **kwargs):
|
||||
execute_strings.append(args[1])
|
||||
pass
|
||||
self.stubs.Set(NetConfig, 'execute', test_execute)
|
||||
|
||||
self.provider.noop = True
|
||||
|
|
Loading…
Reference in New Issue