[blivet:master 05/15] Do not use *args, **kwargs idiom in scheduleCreateFormat.
mulhern
amulhern at redhat.com
Wed May 7 23:05:49 UTC 2014
Do not bother to remove keyword arg usage from invocations, it makes the
invocations clearer and otherwise makes no difference.
Signed-off-by: mulhern <amulhern at redhat.com>
---
tests/storagetestcase.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/tests/storagetestcase.py b/tests/storagetestcase.py
index 2168075..56873f6 100644
--- a/tests/storagetestcase.py
+++ b/tests/storagetestcase.py
@@ -199,7 +199,7 @@ class StorageTestCase(unittest.TestCase):
self.assertEqual(devicetree.getDeviceByName(device.name), None)
return action
- def scheduleCreateFormat(self, *args, **kwargs):
+ def scheduleCreateFormat(self, device, fmt):
""" Schedule an action to write a new format to a device.
Verify that the device is already in the tree, that it is not
@@ -209,8 +209,6 @@ class StorageTestCase(unittest.TestCase):
Return the DeviceAction instance.
"""
- device = kwargs.pop("device")
- fmt = kwargs.pop("fmt")
devicetree = self.storage.devicetree
self.assertNotEqual(device.format, fmt)
--
1.8.3.1
More information about the anaconda-patches
mailing list