tests/fprintd: Check that fingers deletion will remove user print

But will keep state dir where it is
This commit is contained in:
Marco Trevisan (Treviño) 2020-12-17 04:13:17 +01:00 committed by Benjamin Berg
parent 48ea3b89c9
commit 195f7eaf5f

View file

@ -935,6 +935,8 @@ class FPrintdVirtualDeviceClaimedTest(FPrintdVirtualDeviceBaseTest):
self.device.DeleteEnrolledFingers2()
self.assertFalse(os.path.exists(os.path.join(self.state_dir, 'testuser/virtual_image/0/7')))
self.assertFalse(os.path.exists(os.path.join(self.state_dir, 'testuser')))
self.assertTrue(os.path.exists(self.state_dir))
def test_enroll_invalid_storage_dir(self):
# Directory will not exist yet