From 90298134a28d6c9324775ce812adc7223a459ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 6 Feb 2020 20:02:16 +0100 Subject: [PATCH] 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. --- tests/fprintd.py | 6 ++++++ 1 file changed, 6 insertions(+) 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():