device: Set an error if trying to delete a print that is not enrolled

This commit is contained in:
Marco Trevisan (Treviño)
2020-12-06 18:30:53 +01:00
parent fd72c0b81b
commit 7d87f5e664
3 changed files with 49 additions and 16 deletions

View File

@ -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')