commit
df52ed1162
2 changed files with 2 additions and 3 deletions
|
|
@ -41,7 +41,7 @@ class ConnectionTest(unittest.TestCase):
|
|||
c.admin.authenticate("admin", "password")
|
||||
c.mongoenginetest.add_user("username", "password")
|
||||
|
||||
self.assertRaises(ConnectionError, connect, "testdb_uri_bad", host='mongodb://test:password@localhost/mongoenginetest')
|
||||
self.assertRaises(ConnectionError, connect, "testdb_uri_bad", host='mongodb://test:password@localhost')
|
||||
|
||||
connect("testdb_uri", host='mongodb://username:password@localhost/mongoenginetest')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue