'Test Numpy-based parser that returns a NumPy array'

@notprotocolv1
@numpytest
def test_numpy_results_paged(self):

    cluster = Cluster(protocol_version=PROTOCOL_VERSION)
    session = cluster.connect(keyspace='testspace')
    session.row_factory = tuple_factory
    session.client_protocol_handler = NumpyProtocolHandler
    session.default_fetch_size = 2
    expected_pages = (((self.N_ITEMS + session.default_fetch_size) - 1) // session.default_fetch_size)
    self.assertLess(session.default_fetch_size, self.N_ITEMS)
    results = session.execute('SELECT    *    FROM    test_table')
    self.assertTrue(results.has_more_pages)
    for (count, page) in enumerate(results, 1):
        self.assertIsInstance(page, dict)
        for (colname, arr) in page.items():
            if (count <= expected_pages):
                self.assertGreater(len(arr), 0, ('page    count:    %d' % (count,)))
                self.assertLessEqual(len(arr), session.default_fetch_size)
            else:
                self.assertEqual(len(arr), 0)
        self.assertEqual(self._verify_numpy_page(page), len(arr))
    self.assertEqual(count, (expected_pages + 1))
    cluster.shutdown()
