Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.test import TestCase
- from contacts.models import Contact
- class ContactTests(TestCase):
- """Contact model tests."""
- def test_str(self):
- contact = Contact(first_name='John', last_name='Smith')
- self.assertEquals(
- str(contact),
- 'John Smith',
- )
Add Comment
Please, Sign In to add comment