summaryrefslogtreecommitdiff
path: root/src/mango/test/05-index-selection-test.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mango/test/05-index-selection-test.py')
-rw-r--r--src/mango/test/05-index-selection-test.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mango/test/05-index-selection-test.py b/src/mango/test/05-index-selection-test.py
index 2bc5a88f0..cb4d32986 100644
--- a/src/mango/test/05-index-selection-test.py
+++ b/src/mango/test/05-index-selection-test.py
@@ -84,7 +84,7 @@ class IndexSelectionTests:
ddocid = "_design/age"
r = self.db.find({}, use_index=ddocid, return_raw=True)
self.assertEqual(
- r["warning"].split('\n')[0].lower(),
+ r["warning"].split("\n")[0].lower(),
"{0} was not used because it does not contain a valid index for this query.".format(
ddocid
),
@@ -107,7 +107,7 @@ class IndexSelectionTests:
selector = {"company": "Pharmex"}
r = self.db.find(selector, use_index=ddocid, return_raw=True)
self.assertEqual(
- r["warning"].split('\n')[0].lower(),
+ r["warning"].split("\n")[0].lower(),
"{0} was not used because it does not contain a valid index for this query.".format(
ddocid
),
@@ -124,7 +124,7 @@ class IndexSelectionTests:
resp = self.db.find(selector, use_index=[ddocid, name], return_raw=True)
self.assertEqual(
- resp["warning"].split('\n')[0].lower(),
+ resp["warning"].split("\n")[0].lower(),
"{0}, {1} was not used because it is not a valid index for this query.".format(
ddocid, name
),
@@ -162,7 +162,7 @@ class IndexSelectionTests:
selector, sort=["foo", "bar"], use_index=ddocid_invalid, return_raw=True
)
self.assertEqual(
- resp["warning"].split('\n')[0].lower(),
+ resp["warning"].split("\n")[0].lower(),
"{0} was not used because it does not contain a valid index for this query.".format(
ddocid_invalid
),