From 756a80a63eb9ca265e8f1c21d6ed5a6da80715d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 11 Feb 2020 02:12:35 +0100 Subject: [PATCH] tests/fprintd: Ensure we throw NoActionInProgress on *Stop() --- tests/fprintd.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/fprintd.py b/tests/fprintd.py index bfae24d..4753a5c 100755 --- a/tests/fprintd.py +++ b/tests/fprintd.py @@ -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([''])