def test_process_halting(self): """Tests the raising and killing of worker processes""" print("BIGTEST: Gracefully spawn/terminate all processes.") # [self.assertIs(worker.on(), True) for worker in laptop.roll] self.cxn.close() laptop.quit() time.sleep(3.1) for worker in reversed(laptop.roll): self.assertFalse(worker.on())
def tearDown(self): if self.cxn.is_open: self.cxn.close() laptop.quit() time.sleep(3)