mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
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:
@ -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():
|
||||
|
||||
Reference in New Issue
Block a user