Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
e92c19eaf63f
Commit
90480d6f
authored
Feb 18, 2009
by
sylvain.thenault@logilab.fr
Browse files
updat etest
--HG-- branch : tls-sprint
parent
39721e56b56d
Changes
1
Show whitespace changes
Inline
Side-by-side
test/unittest_vregistry.py
View file @
e92c19ea
...
...
@@ -33,12 +33,13 @@ class VRegistryTC(TestCase):
# check loading baseviews after idownloadable isn't kicking interface based views
self
.
assertEquals
(
len
(
self
.
vreg
[
'views'
][
'primary'
]),
2
)
def
test_
auto
selectors
(
self
):
def
test_
__
selectors
__compat
(
self
):
myselector1
=
lambda
*
args
:
1
myselector2
=
lambda
*
args
:
1
class
AnAppObject
(
VObject
):
__selectors__
=
(
myselector1
,
myselector2
)
self
.
assertEquals
(
AnAppObject
.
__select__
(),
2
)
AnAppObject
.
build___select__
()
self
.
assertEquals
(
AnAppObject
.
__select__
(
AnAppObject
),
2
)
def
test_properties
(
self
):
self
.
failIf
(
'system.version.cubicweb'
in
self
.
vreg
[
'propertydefs'
])
...
...
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