Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
piphone
campaign
Commits
8c53eed8
Commit
8c53eed8
authored
Jan 15, 2015
by
Mindiell
Browse files
Add tests on contact models
parent
0e331d24
Changes
1
Hide whitespace changes
Inline
Side-by-side
picampaign/contact/tests.py
View file @
8c53eed8
from
django.test
import
TestCase
# Create your tests here.
from
picampaign.contact.models
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'
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment