tests/fprintd: Add checks for delete enrolled fingers permissions

The test doesn't need any assertion because we're calling DeleteEnrolledFingers
and in case it fails a net.reactivated.Fprint.Error.PermissionDenied error
would be thrown, and thus an exception would be raised at python level, making
the test to fail.
This commit is contained in:
Marco Trevisan (Treviño)
2020-02-06 20:02:16 +01:00
parent 8ff4360750
commit 90298134a2

View File

@ -1114,6 +1114,12 @@ class FPrintdUtilsTest(FPrintdVirtualDeviceBaseTest):
self.device.Claim('(s)', self.get_current_user())
self.device.Release()
def test_already_claimed_same_user_delete_enrolled_fingers(self):
self.device.DeleteEnrolledFingers('(s)', 'testuser')
def test_already_claimed_other_user_delete_enrolled_fingers(self):
self.device.DeleteEnrolledFingers('(s)', 'nottestuser')
def list_tests():