diff options
| author | Joe Guo <joeg@catalyst.net.nz> | 2018-07-30 18:19:59 +1200 |
|---|---|---|
| committer | Douglas Bagnall <dbagnall@samba.org> | 2018-08-24 07:49:29 +0200 |
| commit | 542e91ef9222302303d2ecc10dceb96d1b0d5bab (patch) | |
| tree | dccf1e4662c64795951af8ced6ce2804166357b3 /lib/ldb/tests/python | |
| parent | 7a07d4223028ed34cca20d2fcdf4f1bca1856c8b (diff) | |
| download | samba-542e91ef9222302303d2ecc10dceb96d1b0d5bab.tar.gz samba-542e91ef9222302303d2ecc10dceb96d1b0d5bab.tar.bz2 samba-542e91ef9222302303d2ecc10dceb96d1b0d5bab.zip | |
PEP8: fix E301: expected 1 blank line, found 0
Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'lib/ldb/tests/python')
| -rwxr-xr-x | lib/ldb/tests/python/api.py | 16 | ||||
| -rwxr-xr-x | lib/ldb/tests/python/index.py | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/lib/ldb/tests/python/api.py b/lib/ldb/tests/python/api.py index 423b434d4d3..c88ddc7826e 100755 --- a/lib/ldb/tests/python/api.py +++ b/lib/ldb/tests/python/api.py @@ -1360,6 +1360,7 @@ class SearchTestsLmdb(SearchTests): class IndexedSearchTests(SearchTests): """Test searches using the index, to ensure the index doesn't break things""" + def setUp(self): super(IndexedSearchTests, self).setUp() self.l.add({"dn": "@INDEXLIST", @@ -1369,6 +1370,7 @@ class IndexedSearchTests(SearchTests): class IndexedCheckSearchTests(IndexedSearchTests): """Test searches using the index, to ensure the index doesn't break things (full scan disabled)""" + def setUp(self): self.IDXCHECK = True super(IndexedCheckSearchTests, self).setUp() @@ -1376,6 +1378,7 @@ class IndexedCheckSearchTests(IndexedSearchTests): class IndexedSearchDnFilterTests(SearchTests): """Test searches using the index, to ensure the index doesn't break things""" + def setUp(self): super(IndexedSearchDnFilterTests, self).setUp() self.l.add({"dn": "@OPTIONS", @@ -1389,6 +1392,7 @@ class IndexedSearchDnFilterTests(SearchTests): class IndexedAndOneLevelSearchTests(SearchTests): """Test searches using the index including @IDXONE, to ensure the index doesn't break things""" + def setUp(self): super(IndexedAndOneLevelSearchTests, self).setUp() self.l.add({"dn": "@INDEXLIST", @@ -1400,6 +1404,7 @@ class IndexedAndOneLevelSearchTests(SearchTests): class IndexedCheckedAndOneLevelSearchTests(IndexedAndOneLevelSearchTests): """Test searches using the index including @IDXONE, to ensure the index doesn't break things (full scan disabled)""" + def setUp(self): self.IDXCHECK = True super(IndexedCheckedAndOneLevelSearchTests, self).setUp() @@ -1407,6 +1412,7 @@ class IndexedCheckedAndOneLevelSearchTests(IndexedAndOneLevelSearchTests): class IndexedAndOneLevelDNFilterSearchTests(SearchTests): """Test searches using the index including @IDXONE, to ensure the index doesn't break things""" + def setUp(self): super(IndexedAndOneLevelDNFilterSearchTests, self).setUp() self.l.add({"dn": "@OPTIONS", @@ -1424,6 +1430,7 @@ class IndexedAndOneLevelDNFilterSearchTests(SearchTests): class GUIDIndexedSearchTests(SearchTests): """Test searches using the index, to ensure the index doesn't break things""" + def setUp(self): self.index = {"dn": "@INDEXLIST", "@IDXATTR": [b"x", b"y", b"ou"], @@ -1438,6 +1445,7 @@ class GUIDIndexedSearchTests(SearchTests): class GUIDIndexedDNFilterSearchTests(SearchTests): """Test searches using the index, to ensure the index doesn't break things""" + def setUp(self): self.index = {"dn": "@INDEXLIST", "@IDXATTR": [b"x", b"y", b"ou"], @@ -1455,6 +1463,7 @@ class GUIDIndexedDNFilterSearchTests(SearchTests): class GUIDAndOneLevelIndexedSearchTests(SearchTests): """Test searches using the index including @IDXONE, to ensure the index doesn't break things""" + def setUp(self): self.index = {"dn": "@INDEXLIST", "@IDXATTR": [b"x", b"y", b"ou"], @@ -1713,6 +1722,7 @@ class AddModifyTestsLmdb(AddModifyTests): class IndexedAddModifyTests(AddModifyTests): """Test searches using the index, to ensure the index doesn't break things""" + def setUp(self): if not hasattr(self, 'index'): self.index = {"dn": "@INDEXLIST", @@ -1791,6 +1801,7 @@ class IndexedAddModifyTests(AddModifyTests): class GUIDIndexedAddModifyTests(IndexedAddModifyTests): """Test searches using the index, to ensure the index doesn't break things""" + def setUp(self): self.index = {"dn": "@INDEXLIST", "@IDXATTR": [b"x", b"y", b"ou"], @@ -1802,6 +1813,7 @@ class GUIDIndexedAddModifyTests(IndexedAddModifyTests): class GUIDTransIndexedAddModifyTests(GUIDIndexedAddModifyTests): """Test GUID index behaviour insdie the transaction""" + def setUp(self): super(GUIDTransIndexedAddModifyTests, self).setUp() self.l.transaction_start() @@ -1812,6 +1824,7 @@ class GUIDTransIndexedAddModifyTests(GUIDIndexedAddModifyTests): class TransIndexedAddModifyTests(IndexedAddModifyTests): """Test index behaviour insdie the transaction""" + def setUp(self): super(TransIndexedAddModifyTests, self).setUp() self.l.transaction_start() @@ -1992,6 +2005,7 @@ class BadIndexTests(LdbBaseTest): class GUIDBadIndexTests(BadIndexTests): """Test Bad index things with GUID index mode""" + def setUp(self): self.IDXGUID = True @@ -2723,6 +2737,8 @@ class LdbResultTests(LdbBaseTest): # Show that search results can't see into a transaction + + def test_search_against_trans(self): found11 = False diff --git a/lib/ldb/tests/python/index.py b/lib/ldb/tests/python/index.py index ecd61451f46..72b99551a9b 100755 --- a/lib/ldb/tests/python/index.py +++ b/lib/ldb/tests/python/index.py @@ -908,6 +908,7 @@ class MaxIndexKeyLengthTests(LdbBaseTest): # Test adding to non unique index with identical multivalued index # attributes # + def test_index_multi_valued_identical_keys(self): # 0 1 2 3 4 5 # 12345678901234567890123456789012345678901234567890 |
