mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
tests/fprintd: Ensure we throw NoActionInProgress on *Stop()
This commit is contained in:
committed by
Bastien Nocera
parent
b861500a9f
commit
756a80a63e
@ -679,6 +679,14 @@ class FPrintdVirtualDeviceClaimedTest(FPrintdVirtualDeviceBaseTest):
|
||||
self.device.Release()
|
||||
self.wait_for_result(expected='verify-no-match')
|
||||
|
||||
def test_enroll_stop_not_started(self):
|
||||
with self.assertFprintError('NoActionInProgress'):
|
||||
self.device.EnrollStop()
|
||||
|
||||
def test_verify_stop_not_started(self):
|
||||
with self.assertFprintError('NoActionInProgress'):
|
||||
self.device.VerifyStop()
|
||||
|
||||
def test_unallowed_enroll_start(self):
|
||||
self._polkitd_obj.SetAllowed([''])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user