Repository: couchdb-mango Updated Branches: refs/heads/2645-return-doc-id 2543fae46 -> 8a1bd3176
Change comparison operator for none Fixes COUCHDB-2645 Project: http://git-wip-us.apache.org/repos/asf/couchdb-mango/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mango/commit/8a1bd317 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mango/tree/8a1bd317 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mango/diff/8a1bd317 Branch: refs/heads/2645-return-doc-id Commit: 8a1bd31763204703f510f5efad395a201f4f686b Parents: 2543fae Author: Tony Sun <[email protected]> Authored: Wed Mar 25 17:43:48 2015 -0700 Committer: Tony Sun <[email protected]> Committed: Wed Mar 25 17:43:48 2015 -0700 ---------------------------------------------------------------------- test/mango.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-mango/blob/8a1bd317/test/mango.py ---------------------------------------------------------------------- diff --git a/test/mango.py b/test/mango.py index 6dd4077..57dfffb 100644 --- a/test/mango.py +++ b/test/mango.py @@ -96,8 +96,8 @@ class Database(object): body = json.dumps(body) r = self.sess.post(self.path("_index"), data=body) r.raise_for_status() - assert r.json()["id"] != None - assert r.json()["name"] != None + assert r.json()["id"] is not None + assert r.json()["name"] is not None return r.json()["result"] == "created" def create_text_index(self, analyzer=None, selector=None, idx_type="text", @@ -178,7 +178,7 @@ class DbPerClass(unittest.TestCase): @classmethod def setUpClass(klass): - klass.db = Database("127.0.0.1", "5984", random_db_name()) + klass.db = Database("127.0.0.1", "15984", random_db_name()) klass.db.create(q=1, n=3) def setUp(self):
