diff options
| author | Martin Basti <mbasti@redhat.com> | 2016-10-06 20:28:59 +0200 |
|---|---|---|
| committer | Martin Basti <mbasti@redhat.com> | 2016-10-11 16:50:32 +0200 |
| commit | 49b29591aa979560068449b78fd547915420ff08 (patch) | |
| tree | c54d07394827ae8086a917bf561ef1867817469b /ipatests/test_install | |
| parent | 51af7a15981eca753dfbda133cc557d0512f6e95 (diff) | |
| download | freeipa-49b29591aa979560068449b78fd547915420ff08.tar.gz freeipa-49b29591aa979560068449b78fd547915420ff08.tar.xz freeipa-49b29591aa979560068449b78fd547915420ff08.zip | |
Pylint: remove unused variables in tests
Reviewed-By: Pavel Vomacka <pvomacka@redhat.com>
Diffstat (limited to 'ipatests/test_install')
| -rw-r--r-- | ipatests/test_install/test_updates.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/ipatests/test_install/test_updates.py b/ipatests/test_install/test_updates.py index e6761adc3..4053d3547 100644 --- a/ipatests/test_install/test_updates.py +++ b/ipatests/test_install/test_updates.py @@ -34,8 +34,6 @@ from ipapython import ipautil, ipaldap from ipaplatform.paths import paths from ipapython.dn import DN -# pylint: disable=unused-variable - """ The updater works through files only so this is just a thin-wrapper controlling which file we test at any given point. @@ -93,11 +91,11 @@ class test_update(unittest.TestCase): self.assertTrue(modified) with self.assertRaises(errors.NotFound): - entries = self.ld.get_entries( + self.ld.get_entries( self.container_dn, self.ld.SCOPE_BASE, 'objectclass=*', ['*']) with self.assertRaises(errors.NotFound): - entries = self.ld.get_entries( + self.ld.get_entries( self.user_dn, self.ld.SCOPE_BASE, 'objectclass=*', ['*']) def test_1_add(self): @@ -233,11 +231,11 @@ class test_update(unittest.TestCase): self.assertTrue(modified) with self.assertRaises(errors.NotFound): - entries = self.ld.get_entries( + self.ld.get_entries( self.container_dn, self.ld.SCOPE_BASE, 'objectclass=*', ['*']) with self.assertRaises(errors.NotFound): - entries = self.ld.get_entries( + self.ld.get_entries( self.user_dn, self.ld.SCOPE_BASE, 'objectclass=*', ['*']) def test_8_badsyntax(self): @@ -245,7 +243,7 @@ class test_update(unittest.TestCase): Test the updater with an unknown keyword (test_8_badsyntax) """ with self.assertRaises(BadSyntax): - modified = self.updater.update( + self.updater.update( [os.path.join(self.testdir, "8_badsyntax.update")]) def test_9_badsyntax(self): @@ -253,5 +251,5 @@ class test_update(unittest.TestCase): Test the updater with an incomplete line (test_9_badsyntax) """ with self.assertRaises(BadSyntax): - modified = self.updater.update( + self.updater.update( [os.path.join(self.testdir, "9_badsyntax.update")]) |
