From fd6b2086cbf03d8dd0b46160f345bf7cc5551aeb Mon Sep 17 00:00:00 2001 From: Joe Guo Date: Mon, 30 Jul 2018 18:21:11 +1200 Subject: PEP8: fix E303: too many blank lines (2) Signed-off-by: Joe Guo Reviewed-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- lib/ldb-samba/tests/match_rules.py | 1 - lib/ldb/tests/python/api.py | 7 ------- 2 files changed, 8 deletions(-) (limited to 'lib') diff --git a/lib/ldb-samba/tests/match_rules.py b/lib/ldb-samba/tests/match_rules.py index 9088274a022..58658a0a9ea 100755 --- a/lib/ldb-samba/tests/match_rules.py +++ b/lib/ldb-samba/tests/match_rules.py @@ -1135,7 +1135,6 @@ class MatchRuleConditionTests(samba.tests.TestCase): super(MatchRuleConditionTests, self).tearDown() self.ldb.delete(self.ou, controls=['tree_delete:0']) - def test_g1_members(self): res1 = self.ldb.search(self.ou, scope=SCOPE_SUBTREE, diff --git a/lib/ldb/tests/python/api.py b/lib/ldb/tests/python/api.py index cd0320715fa..fbe69c6ed65 100755 --- a/lib/ldb/tests/python/api.py +++ b/lib/ldb/tests/python/api.py @@ -707,7 +707,6 @@ class SearchTests(LdbBaseTest): # Ensure the LDB is closed now, so we close the FD del(self.l) - def setUp(self): super(SearchTests, self).setUp() self.testdir = tempdir() @@ -1042,7 +1041,6 @@ class SearchTests(LdbBaseTest): self.assertEqual(enum, ldb.ERR_INAPPROPRIATE_MATCHING) self.assertIn(estr, "ldb FULL SEARCH disabled") - def test_subtree_and_or(self): """Testing a search""" @@ -1161,7 +1159,6 @@ class SearchTests(LdbBaseTest): self.assertEqual(enum, ldb.ERR_INAPPROPRIATE_MATCHING) self.assertIn(estr, "ldb FULL SEARCH disabled") - def test_dn_filter_one(self): """Testing that a dn= filter succeeds (or fails with disallowDNFilter @@ -2016,7 +2013,6 @@ class BadIndexTests(LdbBaseTest): # https://bugzilla.samba.org/show_bug.cgi?id=13361 self.assertEquals(len(res), 4) - def tearDown(self): super(BadIndexTests, self).tearDown() @@ -2756,10 +2752,8 @@ class LdbResultTests(LdbBaseTest): found = True self.assertTrue(found) - # Show that search results can't see into a transaction - def test_search_against_trans(self): found11 = False @@ -2824,7 +2818,6 @@ class LdbResultTests(LdbBaseTest): (got_pid, status) = os.waitpid(pid, 0) self.assertEqual(got_pid, pid) - def test_search_iter_against_trans(self): found = False found11 = False -- cgit v1.2.1