diff options
author | Madhusudan.C.S | 2009-10-30 15:09:12 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2009-10-30 15:09:12 +0530 |
commit | f89410559c20dd88d78ccd6b9d24e7941da9d5ff (patch) | |
tree | 3ad4fb64efc7523d1f3065e0dd03693871d6ce55 /project/kiwipycon/registration/tests.py | |
parent | 75f0773685ef0724d8ccc1eb1aab16bba55cd7a7 (diff) | |
download | scipycon-f89410559c20dd88d78ccd6b9d24e7941da9d5ff.tar.gz scipycon-f89410559c20dd88d78ccd6b9d24e7941da9d5ff.tar.bz2 scipycon-f89410559c20dd88d78ccd6b9d24e7941da9d5ff.zip |
Added all the files from kiwipycon and the changes made for SciPy.in.
Diffstat (limited to 'project/kiwipycon/registration/tests.py')
-rw-r--r-- | project/kiwipycon/registration/tests.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/project/kiwipycon/registration/tests.py b/project/kiwipycon/registration/tests.py new file mode 100644 index 0000000..0ea28b2 --- /dev/null +++ b/project/kiwipycon/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 |