project/scipycon/registration/tests.py
author primal primal007@gmail.com
Mon, 30 Jan 2012 15:19:23 +0530
branch2011
changeset 522 01b130ea8d8d
parent 94 87e77aa18610
permissions -rw-r--r--
Merged



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