tests/fprintd: Ensure we throw NoActionInProgress on *Stop()

This commit is contained in:
Marco Trevisan (Treviño)
2020-02-11 02:12:35 +01:00
committed by Bastien Nocera
parent b861500a9f
commit 756a80a63e

View File

@ -679,6 +679,14 @@ class FPrintdVirtualDeviceClaimedTest(FPrintdVirtualDeviceBaseTest):
self.device.Release() self.device.Release()
self.wait_for_result(expected='verify-no-match') 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): def test_unallowed_enroll_start(self):
self._polkitd_obj.SetAllowed(['']) self._polkitd_obj.SetAllowed([''])