pylint: Fix E0213 no-self-argument in tests
We have a couple of methods in our unit tests that are not calling self
by that name, which confuses pylint and triggers error E0213.
This patch fixes those cases to reduce noise in pylint.
@@ -90,12 +90,12 @@ def create_snapshot(volume_id, size=1, metadata=None, ctxt=None,
class KeyObject(object):
- def get_encoded(arg):
+ def get_encoded(self):
return "asdf".encode('utf-8')
class KeyObject2(object):
- def get_encoded(arg):
+ def get_encoded(self):
return "qwert".encode('utf-8')
