'Ensure that the connect() method works properly.'

def test_connect(self):

    connect('mongoenginetest')
    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')
    connect('mongoenginetest2', alias='testdb')
    conn = get_connection('testdb')
    self.assertTrue(isinstance(conn, pymongo.mongo_client.MongoClient))
