Guest User

Untitled

a guest
Jan 6th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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(str(contact), 'John Smith')
Advertisement
Add Comment
Please, Sign In to add comment