mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-05-05 01:47:58 +02:00
fprintd: Add tests for device properties values
This commit is contained in:
parent
4435706d20
commit
0122d351f9
1 changed files with 11 additions and 0 deletions
|
|
@ -531,6 +531,17 @@ class FPrintdManagerPreStartTests(FPrintdTest):
|
|||
|
||||
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):
|
||||
self._polkitd_obj.SetAllowed(['net.reactivated.fprint.device.setusername',
|
||||
'net.reactivated.fprint.device.enroll'])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue