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. Change-Id: I3383e3da21657845741b451e60231e1281196546
This commit is contained in:
parent
d2d5e92503
commit
764bc3c5d8
|
@ -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')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue