Commit 90298134 authored by Marco Trevisan's avatar Marco Trevisan
Browse files

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.
parent 8ff43607
......@@ -1114,6 +1114,12 @@ class FPrintdUtilsTest(FPrintdVirtualDeviceBaseTest):
self.device.Claim('(s)', self.get_current_user())
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():
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment