Commit 8c53eed8 authored by Mindiell's avatar Mindiell
Browse files

Add tests on contact models

parent 0e331d24
from django.test import TestCase
# Create your tests here.
from import Contact
class ContactMethodsTest(TestCase):
def test_full_name(self):
contact = Contact(first_name='Victor', last_name='Hugo')
self.assertEqual(contact.full_name(), 'Victor Hugo')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment