mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
tests/fprintd-utils: Check that fprintd-verify requests the expected finger
This commit is contained in:
@ -203,6 +203,10 @@ class TestFprintdUtilsVerify(TestFprintdUtilsBase):
|
|||||||
for f in self.enrolled_fingers:
|
for f in self.enrolled_fingers:
|
||||||
self.assertIn(f, out)
|
self.assertIn(f, out)
|
||||||
|
|
||||||
|
if finger:
|
||||||
|
expected_finger = finger
|
||||||
|
self.assertEqual(self.device_mock.GetSelectedFinger(), expected_finger)
|
||||||
|
|
||||||
def assertVerifyMatch(self, match):
|
def assertVerifyMatch(self, match):
|
||||||
self.assertIn('Verify result: {} (done)'.format(
|
self.assertIn('Verify result: {} (done)'.format(
|
||||||
'verify-match' if match else 'verify-no-match'),
|
'verify-match' if match else 'verify-no-match'),
|
||||||
|
|||||||
Reference in New Issue
Block a user