@testcase.attr('positive')
    def test_get_orders_defaults(self):
        limit = 7
        offset = 0
        total = 10

        # create the orders
        for i in range(0, total + 1):
            order = self.barbicanclient.orders.create_key(
                **order_create_key_data)
            order_ref = self.cleanup.add_entity(order)
            self.assertIsNotNone(order_ref)

        # get a list of orders
        orders_list = self.barbicanclient.orders.list(limit=limit,
                                                      offset=offset)

        # verify that the get for the list was successful
        self.assertEqual(limit, len(orders_list))
Covers getting a list of orders.
dataset/ETHPy150Open openstack/python-barbicanclient/functionaltests/client/v1/smoke/test_orders.py/OrdersTestCase.test_get_orders_defaults