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
cubicweb
cubes
person
Commits
41e72788cb3f
Commit
bcc27f65
authored
Aug 05, 2009
by
Sylvain Thénault
Browse files
test fix
parent
5110d231c1d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/unittest_person.py
View file @
41e72788
...
...
@@ -3,12 +3,12 @@ from cubicweb.devtools.apptest import EnvBasedTC
class
PersonTC
(
EnvBasedTC
):
def
setup_database
(
self
):
self
.
add_entity
(
'Person'
,
firstname
=
u
'adrien'
,
surname
=
u
'di mascio'
)
self
.
add_entity
(
'Person'
,
firstname
=
u
'adrien'
,
surname
=
u
'di mascio'
)
def
test_dc_title
(
self
):
e
=
self
.
entity
(
'Any X WHERE X is Person'
)
self
.
assertEquals
(
e
.
dc_title
(),
'adrien di mascio'
)
self
.
assertEquals
(
e
.
dc_long_title
(),
'Mr
.
adrien di mascio'
)
self
.
assertEquals
(
e
.
dc_long_title
(),
'Mr adrien di mascio'
)
if
__name__
==
'__main__'
:
unittest_main
()
Write
Preview
Markdown
is supported
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