diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2020-02-06 20:02:16 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2020-03-27 20:45:59 +0100 |
commit | 90298134a28d6c9324775ce812adc7223a459ea1 (patch) | |
tree | d3fd81df6ecafcedccebb8bad85ff2d2380d2ab7 | |
parent | 8ff43607501513009ce55934adb817c6d6adc04f (diff) |
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.
-rwxr-xr-x | tests/fprintd.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/fprintd.py b/tests/fprintd.py index e3f3749..a402356 100755 --- a/tests/fprintd.py +++ b/tests/fprintd.py @@ -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(): |