Commit baf467c6 authored by Jérome Perrin's avatar Jérome Perrin Committed by Łukasz Nowak

test: name Mixin with MixinPrefix

pylint understands this and does not report errors about accessing
undefined members.

http://pylint.pycqa.org/en/stable/faq.html#how-do-i-avoid-access-to-undefined-member-messages-in-my-mixin-classes
parent 58b7e2d9
...@@ -96,7 +96,7 @@ class KedifaMixin(object): ...@@ -96,7 +96,7 @@ class KedifaMixin(object):
_clean_caucased_snapshot = None _clean_caucased_snapshot = None
class KedifaMixinCaucase(KedifaMixin): class KedifaCaucaseMixin(KedifaMixin):
def _startCaucaseServer(self, argv=(), timeout=10): def _startCaucaseServer(self, argv=(), timeout=10):
""" """
Start caucased server Start caucased server
...@@ -370,7 +370,7 @@ ez+ONyvetfvjD8cxyQ== ...@@ -370,7 +370,7 @@ ez+ONyvetfvjD8cxyQ==
return reserved_reference return reserved_reference
def setUp(self): def setUp(self):
super(KedifaMixinCaucase, self).setUp() super(KedifaCaucaseMixin, self).setUp()
self.createPem() self.createPem()
self.setUpCaucase() self.setUpCaucase()
...@@ -388,7 +388,7 @@ ez+ONyvetfvjD8cxyQ== ...@@ -388,7 +388,7 @@ ez+ONyvetfvjD8cxyQ==
@unittest.skipIf(sys.version_info >= (3, ), 'kedifa currently supports python 2 only') @unittest.skipIf(sys.version_info >= (3, ), 'kedifa currently supports python 2 only')
class KedifaIntegrationTest(KedifaMixinCaucase, unittest.TestCase): class KedifaIntegrationTest(KedifaCaucaseMixin, unittest.TestCase):
def assertAnyLogEntry(self, entry): def assertAnyLogEntry(self, entry):
with open(self.logfile) as fh: with open(self.logfile) as fh:
log_line_list = fh.readlines() log_line_list = fh.readlines()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment