Ejemplo n.º 1
0
 def test_scan_add_after_cancel_new(self):
     self.scanid = _scan_new(DEBUG)
     with self.assertRaises(IrmaError):
         _scan_cancel(self.scanid)
     with self.assertRaises(IrmaError):
         _scan_add(self.scanid, [self.filename], DEBUG)
     return
Ejemplo n.º 2
0
 def test_scan_add_after_cancel_launch(self):
     force = False
     probe = None
     self.scanid = _scan_new(DEBUG)
     _scan_add(self.scanid, [self.filename], DEBUG)
     _scan_launch(self.scanid, force, probe, DEBUG)
     with self.assertRaises(IrmaError):
         _scan_cancel(self.scanid)
     with self.assertRaises(IrmaError):
         _scan_add(self.scanid, [self.filename], DEBUG)
     return