From ef8d1f1b15858ed0b86fb92e03d1c3797c6c1e1f Mon Sep 17 00:00:00 2001 From: Ricardo Martincoski Date: Thu, 5 Oct 2017 18:42:09 -0300 Subject: support/testing: fix code style Fix the trivial warnings from flake8: - remove modules imported but unused; - use 2 lines before class or module level method; - remove blank line at end of file. Signed-off-by: Ricardo Martincoski Acked-by: "Yann E. MORIN" Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- support/testing/tests/init/test_systemd.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'support/testing/tests/init/test_systemd.py') diff --git a/support/testing/tests/init/test_systemd.py b/support/testing/tests/init/test_systemd.py index b1b6517373..77d734895b 100644 --- a/support/testing/tests/init/test_systemd.py +++ b/support/testing/tests/init/test_systemd.py @@ -1,6 +1,7 @@ import infra.basetest from tests.init.base import InitSystemBase as InitSystemBase + class InitSystemSystemdBase(InitSystemBase): config = \ """ @@ -21,7 +22,6 @@ class InitSystemSystemdBase(InitSystemBase): super(InitSystemSystemdBase, self).checkInit("/lib/systemd/systemd") -#------------------------------------------------------------------------------- class TestInitSystemSystemdRoNetworkd(InitSystemSystemdBase): config = InitSystemSystemdBase.config + \ """ @@ -43,7 +43,6 @@ class TestInitSystemSystemdRoNetworkd(InitSystemSystemdBase): self.assertEqual(out[0], "foobar") -#------------------------------------------------------------------------------- class TestInitSystemSystemdRwNetworkd(InitSystemSystemdBase): config = InitSystemSystemdBase.config + \ """ @@ -57,7 +56,6 @@ class TestInitSystemSystemdRwNetworkd(InitSystemSystemdBase): self.checkNetwork("eth0") -#------------------------------------------------------------------------------- class TestInitSystemSystemdRoIfupdown(InitSystemSystemdBase): config = InitSystemSystemdBase.config + \ """ @@ -73,7 +71,6 @@ class TestInitSystemSystemdRoIfupdown(InitSystemSystemdBase): self.checkNetwork("eth0") -#------------------------------------------------------------------------------- class TestInitSystemSystemdRwIfupdown(InitSystemSystemdBase): config = InitSystemSystemdBase.config + \ """ @@ -89,7 +86,6 @@ class TestInitSystemSystemdRwIfupdown(InitSystemSystemdBase): self.checkNetwork("eth0") -#------------------------------------------------------------------------------- class TestInitSystemSystemdRoFull(InitSystemSystemdBase): config = InitSystemSystemdBase.config + \ """ @@ -121,7 +117,6 @@ class TestInitSystemSystemdRoFull(InitSystemSystemdBase): self.checkNetwork("eth0") -#------------------------------------------------------------------------------- class TestInitSystemSystemdRwFull(InitSystemSystemdBase): config = InitSystemSystemdBase.config + \ """ -- cgit v1.2.3