from django.test import TestCase
from django.test import override_settings


# @override_settings(ROOT_URLCONF='cart.tests.urls')
class RegisterWorkflowTestCase(TestCase):
    def test_urls(self):
        resp = self.client.get('/cart/1')
        self.assertEqual(resp.status_code, 200)
        resp = self.client.get('/cart/2')
        self.assertEqual(resp.status_code, 200)

    # User arrives at liberty.one (django)
    # Static page hosted by Nginx
    # Contains links liberty.one/register/1, liberty.one/register/2,
    # etc (exact format to be determined)


    # User selects a reward link, taken to registration page

    # Django registration module
    # URL used to store reward choice



    # User enters username, passphrase and CAPTCHA

    # Django registration module



    # User clicks "Submit", redirected to cart page at shop.puri.sm

    # Details are verified
    # User account is created
    # Cart URL based on reward choice, e.g. liberty.one/register/2
    # redirects to shop.puri.sm/cart/2




    # User modifies cart, clicks "Checkout", taken to checkout page


    # User enters username, passphrase, payment details and clicks "Pay",
    # redirected to Liberty-specific thanks page

    # Username must be full @liberty.one username



    # User reads thanks page, clicks "login" link, and is redirected to
    # liberty.one profile page.