ofcRS

Untitled

Jan 6th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  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(
  11.             str(contact),
  12.             'John Smith',
  13.         )
Add Comment
Please, Sign In to add comment