mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
tests/fprintd: Ensure device open is correctly handled
This commit is contained in:
committed by
Bastien Nocera
parent
f92801a15c
commit
ab47e03f05
@ -501,6 +501,13 @@ class FPrintdVirtualDeviceTest(FPrintdVirtualDeviceBaseTest):
|
||||
with self.assertFprintError('NoEnrolledPrints'):
|
||||
self.device.ListEnrolledFingers('(s)', 'testuser')
|
||||
|
||||
def test_claim_device_open_fail(self):
|
||||
os.rename(self.tmpdir, self.tmpdir + '-moved')
|
||||
self.addCleanup(os.rename, self.tmpdir + '-moved', self.tmpdir)
|
||||
|
||||
with self.assertFprintError('Internal'):
|
||||
self.device.Claim('(s)', 'testuser')
|
||||
|
||||
|
||||
class FPrintdVirtualDeviceClaimedTest(FPrintdVirtualDeviceBaseTest):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user