'Ensure we can specify a max connection pool size using
a connection kwarg.'

def test_connection_pool_via_kwarg(self):

    if (pymongo.version_tuple[0] >= 3):
        pool_size_kwargs = {'maxpoolsize': 100}
    else:
        pool_size_kwargs = {'max_pool_size': 100}
    conn = connect('mongoenginetest', alias='max_pool_size_via_kwarg', **pool_size_kwargs)
    self.assertEqual(conn.max_pool_size, 100)
