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:
Saravanan KR 2017-03-20 16:07:27 +05:30
parent ab0e0d433f
commit 34df7f5748
1 changed files with 0 additions and 2 deletions

View File

@ -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