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
bob
bob.db.utfvp
Commits
f1182a42
Commit
f1182a42
authored
Feb 19, 2015
by
Pedro TOME
Browse files
updated test
parent
9f98dc3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/db/utfvp/test.py
View file @
f1182a42
...
...
@@ -119,7 +119,6 @@ class UTFVPDatabaseTest(unittest.TestCase):
self
.
assertEqual
(
len
(
db
.
objects
(
protocol
=
'1vsall'
,
groups
=
'dev'
,
model_ids
=
(
'1_2_3'
,),
purposes
=
'probe'
,
classes
=
'client'
)),
3
)
# 4 acq - 1
self
.
assertEqual
(
len
(
db
.
objects
(
protocol
=
'1vsall'
,
groups
=
'dev'
,
model_ids
=
(
'1_2_3'
,),
purposes
=
'probe'
,
classes
=
'impostor'
)),
1296
)
#1300 - 4 acq
def
test022_objects
(
self
):
# tests if the right number of File objects is returned
db
=
bob
.
db
.
utfvp
.
Database
()
...
...
@@ -152,6 +151,10 @@ class UTFVPDatabaseTest(unittest.TestCase):
self
.
assertEqual
(
len
(
db
.
objects
(
protocol
=
'nom'
,
groups
=
'eval'
,
model_ids
=
(
'30_2'
,),
purposes
=
'probe'
,
classes
=
'impostor'
)),
382
)
#384 - 2
def
test023_objects
(
self
):
# tests if the right number of File objects is returned
db
=
bob
.
db
.
utfvp
.
Database
()
#####################################################
# Protocol 'nomLeftRing'
self
.
assertEqual
(
len
(
db
.
objects
(
protocol
=
'nomLeftRing'
)),
240
)
#1440 - 60 subjects * 1 fingers * 4 acq
...
...
@@ -233,6 +236,10 @@ class UTFVPDatabaseTest(unittest.TestCase):
self
.
assertEqual
(
len
(
db
.
objects
(
protocol
=
'nomLeftIndex'
,
groups
=
'eval'
,
model_ids
=
(
'30_3'
,),
purposes
=
'probe'
,
classes
=
'impostor'
)),
62
)
#64 - 2
def
test024_objects
(
self
):
# tests if the right number of File objects is returned
db
=
bob
.
db
.
utfvp
.
Database
()
#####################################################
# Protocol 'nomRightIndex'
self
.
assertEqual
(
len
(
db
.
objects
(
protocol
=
'nomRightIndex'
)),
240
)
#1440 - 60 subjects * 1 fingers * 4 acq
...
...
@@ -314,7 +321,6 @@ class UTFVPDatabaseTest(unittest.TestCase):
self
.
assertEqual
(
len
(
db
.
objects
(
protocol
=
'nomRightRing'
,
groups
=
'eval'
,
model_ids
=
(
'30_6'
,),
purposes
=
'probe'
,
classes
=
'impostor'
)),
62
)
#64 - 2
def
test03_driver_api
(
self
):
from
bob.db.base.script.dbmanage
import
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