Final PEP-8 fixes

This commit is contained in:
Joao Pedro De Almeida Pereira
2018-03-08 09:33:43 +00:00
committed by Dave Page
parent f86c313c18
commit 3a6994f719
71 changed files with 1208 additions and 839 deletions

View File

@@ -21,43 +21,36 @@ class VersionInRangeTestCase(BaseTestGenerator):
scenarios = [
(
'TestCase for Validating pgversion 8.23 and min_version is 91000, '
'should not show',
dict(
'it should not show', dict(
sversion=82300,
min_version=90100,
max_version=1000000000,
scenario=2
)
),
)),
(
'TestCase for Validating pgversion 9.2 and should show by default',
dict(
'TestCase for Validating pgversion 9.2, '
'it should show by default', dict(
sversion=90200,
min_version=0,
max_version=1000000000,
scenario=1
)
),
)),
(
'TestCase for Validating pgversion 9.2 and min/max are None, '
'should show by default',
dict(
'it should show by default', dict(
sversion=90200,
min_version=None,
max_version=None,
scenario=1
)
),
)),
(
'TestCase for Validating pgversion 9.6 and max is lower, should '
'not show',
dict(
'TestCase for Validating pgversion 9.6 and max is lower, '
'it should not show', dict(
sversion=90600,
min_version=None,
max_version=90400,
scenario=2
)
)
))
]
@classmethod
@@ -74,13 +67,17 @@ class VersionInRangeTestCase(BaseTestGenerator):
def test_result_is_true(self):
self.assertTrue(
is_version_in_range(
self.sversion, self.min_version, self.max_version
self.sversion,
self.min_version,
self.max_version
)
)
def test_result_is_false(self):
self.assertFalse(
is_version_in_range(
self.sversion, self.min_version, self.max_version
self.sversion,
self.min_version,
self.max_version
)
)