'Ensure connect() method works properly if the URI doesn\'t
include a database name.'

def test_connect_uri_without_db(self):

    connect('mongoenginetest', host='mongodb://localhost/')
    conn = get_connection()
    self.assertTrue(isinstance(conn, pymongo.mongo_client.MongoClient))
    db = get_db()
    self.assertTrue(isinstance(db, pymongo.database.Database))
    self.assertEqual(db.name, 'mongoenginetest')
