tests.py 273 Bytes
Newer Older
1 2
from django.test import TestCase

Mindiell's avatar
Mindiell committed
3 4 5 6 7 8
from picampaign.contact.models import Contact

class ContactMethodsTest(TestCase):
    def test_full_name(self):
        contact = Contact(first_name='Victor', last_name='Hugo')
        self.assertEqual(contact.full_name(), 'Victor Hugo')