

def testLimitView(self):
    cb = self.make_connection()
    d = cb.queryAll('beer', 'brewery_beers', limit=10)

    def _verify(o):
        self.assertIsInstance(o, BatchedView)
        rows = list(o)
        self.assertEqual(len(rows), 10)
    return d.addCallback(_verify)

dataset/ETHPy150Open couchbase/couchbase-python-client/txcouchbase/tests/test_views.py TxViewsTests.testLimitView/original