SHOW:
|
|
- or go back to the newest paste.
| 1 | from django.test import TestCase | |
| 2 | ||
| 3 | from contacts.models import Contact | |
| 4 | ||
| 5 | class ContactTests(TestCase): | |
| 6 | """Contact model tests.""" | |
| 7 | ||
| 8 | - | def test_str(self): |
| 8 | + | def test_str(self): |
| 9 | - | contact = Contact(first_name='John', last_name='Smith') |
| 9 | + | contact = Contact(first_name='John', last_name='Smith') |
| 10 | - | self.assertEquals(str(contact), 'John Smith') |
| 10 | + | self.assertEquals(str(contact), 'John Smith') |