ldb/tests/py/index: remove dup value in dictionary
[nivanova/samba-autobuild/.git] / lib / ldb / tests / python / index.py
index 4837d256f2d519c23b412b61d76b40713143c30f..63486eb9b2d65b6ecf39d4c1ccff53ec1303a358 100755 (executable)
@@ -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
@@ -1311,11 +1312,10 @@ class RejectSubDBIndex(LdbBaseTest):
     def test_try_subdb_index(self):
         try:
             self.l.add({"dn": "@INDEXLIST",
-                    "@IDX_LMDB_SUBDB": [b"1"],
-                    "@IDXONE": [b"1"],
-                    "@IDXONE": [b"1"],
-                    "@IDXGUID": [b"objectUUID"],
-                    "@IDX_DN_GUID": [b"GUID"],
+                        "@IDX_LMDB_SUBDB": [b"1"],
+                        "@IDXONE": [b"1"],
+                        "@IDXGUID": [b"objectUUID"],
+                        "@IDX_DN_GUID": [b"GUID"],
                         })
         except ldb.LdbError as e:
             code = e.args[0]
@@ -1323,6 +1323,7 @@ class RejectSubDBIndex(LdbBaseTest):
             self.assertEqual(ldb.ERR_OPERATIONS_ERROR, code)
             self.assertIn("sub-database index", string)
 
+
 if __name__ == '__main__':
     import unittest
     unittest.TestProgram()