diff --git a/doc/_build/doctrees/environment.pickle b/doc/_build/doctrees/environment.pickle index d3c56de..d461557 100644 --- a/doc/_build/doctrees/environment.pickle +++ b/doc/_build/doctrees/environment.pickle Binary files differ diff --git a/doc/_build/doctrees/using.doctree b/doc/_build/doctrees/using.doctree index c4f9a1c..1479bd9 100644 --- a/doc/_build/doctrees/using.doctree +++ b/doc/_build/doctrees/using.doctree Binary files differ diff --git a/doc/_build/html/index.html b/doc/_build/html/index.html index a82f010..367df44 100644 --- a/doc/_build/html/index.html +++ b/doc/_build/html/index.html @@ -63,6 +63,7 @@
>>> url = '/subscriptions/new_list1%40mail.example.com/subscribe'
+The Subscriptions form is found on the below URL. Last part of the Url is one of [None,’subscribe’,’unsubscribe’]
+>>> url = '/subscriptions/new_list1%40mail.example.com/subscribe'
>>> response = c.get(url)
+>>> response.status_code
+200
-
-
>>> response.status_code
-200
->>> "james@example.com" in response.content
+Forms will be prefilled with the Users Email if so. is logged in.
+>>> "james@example.com" in response.content
True
-
-
-Now subscribe James and Katie and check that you get redirected to List Summary which should now have an additional Button allowing to modify your user options.
+Now we can subscribe James and Katie and check that we get redirected to List Summary.
>>> response = c.post(url,
... {"email": "james@example.com",
... "real_name": "James Watt",
@@ -328,16 +324,14 @@
True
-
>>> response = c.get('/lists/new_list1%40mail.example.com/')
+The logged in user (james@example.com) can now modify his own membership using a button which is displayed in list_summary.
+>>> response = c.get('/lists/new_list1%40mail.example.com/')
>>> "mm_membership" in response.content
True
-
-
>>> response = c.post('/subscriptions/new_list1%40mail.example.com/unsubscribe',
+Using the same subscription page we can unsubscribe as well.
+>>> response = c.post('/subscriptions/new_list1%40mail.example.com/unsubscribe',
... {"email": "katie@example.com",
... "name": "unsubscribe",
... "fqdn_listname": "new_list1@mail.example.com"})
@@ -345,20 +339,13 @@
True
-
-
Now we want to mass subscribe a few users to the list. Therefore, -go to the mass subscription page.
+Another page related to Mass Subscriptions will be available to List Owners as well. This page will allow adding a couple of users to one lists at the same time.
>>> url = '/subscriptions/new_list1%40mail.example.com/mass_subscribe/'
>>> response = c.get(url)
-
Check that everything went well by making sure the status code -was correct.
->>> response.status_code
+>>> response.status_code
200
Now let’s go to the membership settings page. Once we go there we should get a list of all the available lists.
>>> response = c.get('/membership_settings/new_list1%40mail.example.com/')
-
Check that we came to the right place...
->>> print "Membership Settings" in response.content
+>>> print "Membership Settings" in response.content
True
...and select the list 'test-one@example.com‘.
+Select the list 'new_list1@example.com‘.
>>> response = c.get('/membership_settings/new_list1%40mail.example.com/')
-
Lets make sure we got to the right page.
->>> print ("Membership Settings" in response.content) and ("for new_list1@mail.example.com" in response.content)
+>>> print ("Membership Settings" in response.content) and ("for new_list1@mail.example.com" in response.content)
True
Note
+This page relies on the Middleware connecting the Django Project with Mailman - see acknowledgements
+>>> response = c.get('/lists/',HTTP_HOST='example.com')
>>> print "new_list1%40example.com" in response.content
-False
+False
So far this is what you can do in the UI. More tests can be added -here later.
+>>> teardown_mm(testobject)
+Finishing Test¶
+
>>> teardown_mm(testobject)