Skip to content

Commit

Permalink
Gives Errno 111 mongodb v. 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
idargb committed Oct 31, 2012
1 parent 40fe10d commit 37ee803
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ data

#Mr Developer
.mr.developer.cfg

#PyCharm
.idea/
2 changes: 1 addition & 1 deletion tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_not_connect_to_mongo_raises_error(self):
"""[ConnectionTestCase] - Raises error when can't connect to mongo"""

Connection.when.called_with(host="localhost", port=27000) \
.should.throw(InterfaceError, "[Errno 61] Connection refused")
.should.throw(InterfaceError, "[Errno 111] Connection refused")

def test_connect_to_mongo(self):
"""[ConnectionTestCase] - Can stabilish connection to mongo"""
Expand Down

0 comments on commit 37ee803

Please sign in to comment.