mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
device: Set an error if trying to delete a print that is not enrolled
This commit is contained in:
@ -1134,6 +1134,10 @@ class FPrintdVirtualDeviceClaimedTest(FPrintdVirtualDeviceBaseTest):
|
||||
with self.assertFprintError('InvalidFingername'):
|
||||
self.device.DeleteEnrolledFinger('(s)', 'sixth-left-finger')
|
||||
|
||||
def test_delete_with_no_enrolled_prints(self):
|
||||
with self.assertFprintError('NoEnrolledPrints'):
|
||||
self.device.DeleteEnrolledFinger('(s)', 'left-index-finger')
|
||||
|
||||
def test_verify_with_no_enrolled_prints(self):
|
||||
with self.assertFprintError('NoEnrolledPrints'):
|
||||
self.device.VerifyStart('(s)', 'any')
|
||||
|
||||
Reference in New Issue
Block a user