View difference between Paste ID: E8Qq26cz and 6LNKhche
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):
9
	contact = Contact(first_name='John', last_name='Smith')
10-
        self.assertEquals(
10+
    self.assertEquals(str(contact), 'John Smith')