Commit cdaf4a79 authored by Florian Fuchs's avatar Florian Fuchs

added doctest for saving preferences (given by abompard)

parent 6f615342
......@@ -522,6 +522,13 @@ By default, preferences are not set and fall back to the global system preferenc
Preferences can be set, but you have to call ``save`` to make your changes permanent.
>>> prefs = test_two.get_member('anna@example.com').preferences
>>> prefs['delivery_status'] = 'by_user'
>>> prefs.save()
>>> prefs = test_two.get_member('anna@example.com').preferences
>>> print prefs['delivery_status']
by_user
Owners and Moderators
=====================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment