def _():
            results = snippets.cursor_paging(client)
            page_one, cursor_one, page_two, cursor_two = results

            assert len(page_one) == 5
            assert len(page_two)
            assert cursor_one
示例#2
0
        def _():
            results = snippets.cursor_paging(client)
            page_one, cursor_one, page_two, cursor_two = results

            assert len(page_one) == 5
            assert len(page_two)
            assert cursor_one
    def test_cursor_paging(self, waiting_client):
        for n in range(6):
            waiting_client.entities_to_delete.append(
                snippets.insert(waiting_client))

        page_one, cursor_one, page_two, cursor_two = snippets.cursor_paging(
            waiting_client)

        assert len(page_one) == 5
        assert len(page_two) == 1
        assert cursor_one
        assert cursor_two
    def test_cursor_paging(self, waiting_client):
        for n in range(6):
            waiting_client.entities_to_delete.append(
                snippets.insert(waiting_client))

        page_one, cursor_one, page_two, cursor_two = snippets.cursor_paging(
            waiting_client)

        assert len(page_one) == 5
        assert len(page_two) == 1
        assert cursor_one
        assert cursor_two