summaryrefslogtreecommitdiff
path: root/project/scipycon/registration/tests.py
blob: 0ea28b2f1181017701293a6c1a7ec77f15dff83f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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