mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
fprintd: Add tests for device properties values
This commit is contained in:
committed by
Benjamin Berg
parent
4435706d20
commit
0122d351f9
@ -531,6 +531,17 @@ class FPrintdManagerPreStartTests(FPrintdTest):
|
|||||||
|
|
||||||
class FPrintdVirtualDeviceTest(FPrintdVirtualDeviceBaseTest):
|
class FPrintdVirtualDeviceTest(FPrintdVirtualDeviceBaseTest):
|
||||||
|
|
||||||
|
def test_name_property(self):
|
||||||
|
self.assertEqual(self.device.get_cached_property('name').unpack(),
|
||||||
|
'Virtual image device for debugging')
|
||||||
|
|
||||||
|
def test_enroll_stages_property(self):
|
||||||
|
self.assertEqual(self.device.get_cached_property('num-enroll-stages').unpack(), 5)
|
||||||
|
|
||||||
|
def test_scan_type(self):
|
||||||
|
self.assertEqual(self.device.get_cached_property('scan-type').unpack(),
|
||||||
|
'swipe')
|
||||||
|
|
||||||
def test_allowed_claim_release_enroll(self):
|
def test_allowed_claim_release_enroll(self):
|
||||||
self._polkitd_obj.SetAllowed(['net.reactivated.fprint.device.setusername',
|
self._polkitd_obj.SetAllowed(['net.reactivated.fprint.device.setusername',
|
||||||
'net.reactivated.fprint.device.enroll'])
|
'net.reactivated.fprint.device.enroll'])
|
||||||
|
|||||||
Reference in New Issue
Block a user