'Verify that get_user_orders returns the correct order data.'

def test_commerce_order_detail(self):

    with mock_get_orders():
        order_detail = get_user_orders(self.user)
    for (i, order) in enumerate(mock_get_orders.default_response['results']):
        expected = {'number': order['number'], 'price': order['total_excl_tax'], 'order_date': 'Jan    01,    2016', 'receipt_url': ('/checkout/receipt/?order_number=' + order['number']), 'lines': order['lines']}
        self.assertEqual(order_detail[i], expected)
