'Ensure that connections with different aliases may be registered.'

def test_register_connection(self):

    register_connection('testdb', 'mongoenginetest2')
    self.assertRaises(MongoEngineConnectionError, get_connection)
    conn = get_connection('testdb')
    self.assertTrue(isinstance(conn, pymongo.mongo_client.MongoClient))
    db = get_db('testdb')
    self.assertTrue(isinstance(db, pymongo.database.Database))
    self.assertEqual(db.name, 'mongoenginetest2')
