'Verify the checkout page URL is properly constructed and returned.'

@override_settings(ECOMMERCE_PUBLIC_URL_ROOT='http://ecommerce_url')
@ddt.data(['TESTSKU'], ['TESTSKU1', 'TESTSKU2', 'TESTSKU3'])
def test_get_checkout_page_url(self, skus):

    url = EcommerceService().get_checkout_page_url(*skus)
    config = CommerceConfiguration.current()
    expected_url = '{root}{basket_url}?{skus}'.format(basket_url=config.MULTIPLE_ITEMS_BASKET_PAGE_URL, root=settings.ECOMMERCE_PUBLIC_URL_ROOT, skus=urlencode({'sku': skus}, doseq=True))
    self.assertEqual(url, expected_url)
