diff options
Diffstat (limited to 'project/scipycon/registration/tests.py')
-rw-r--r-- | project/scipycon/registration/tests.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/project/scipycon/registration/tests.py b/project/scipycon/registration/tests.py new file mode 100644 index 0000000..0ea28b2 --- /dev/null +++ b/project/scipycon/registration/tests.py @@ -0,0 +1,19 @@ + + +def test_save_to_pdf(): + """ + >>> from .pdf import save_invoice + >>> from django.db.models.loading import get_model + >>> userModel = get_model('auth', 'user') + >>> user = userModel(username='joe', email='joe@gmail.com', + ... first_name='Joe', last_name='Bloggs') + >>> user.save() + >>> regModel = get_model('registration', 'registration') + >>> registration = regModel(registrant=user, amount=40, + ... slug='NZPYCON-0001') + >>> registration.save() + + >>> save_invoice(user, registration, 'registration/invoice.html') + + """ + pass |