Commit a34432cc authored by Marco Trevisan's avatar Marco Trevisan Committed by Bastien Nocera
Browse files

tests/fprintd: Add assertFprintError to check errors

parent f2804921
......@@ -336,6 +336,10 @@ class FPrintdVirtualDeviceTest(FPrintdTest):
self.daemon_stop()
self.polkitd_stop()
def assertFprintError(self, fprint_error):
return self.assertRaisesRegex(GLib.Error,
'.*net\.reactivated\.Fprint\.Error\.{}.*'.format(fprint_error))
def test_enroll_verify_list_delete(self):
self.device.Claim('(s)', 'testuser')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment