From b92f39be3d48a7dd97875235f246aaabe1a7cc96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 27 Jan 2021 18:00:39 +0100 Subject: [PATCH] tests/fprintd: Add test to check errors during release --- tests/fprintd.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/fprintd.py b/tests/fprintd.py index 8c8fe74..e7501b2 100644 --- a/tests/fprintd.py +++ b/tests/fprintd.py @@ -2291,6 +2291,12 @@ class FPrintdVirtualDeviceStorageClaimedTest(FPrintdVirtualStorageDeviceBaseTest with self.assertFprintError('PrintsNotDeleted'): self.wait_for_device_reply() + def test_release_error(self): + self.send_error(FPrint.DeviceError.PROTO) + + with self.assertFprintError('Internal'): + self.device.Release() + class FPrintdVirtualDeviceVerificationTests(FPrintdVirtualDeviceBaseTest):