Ejemplo n.º 1
0
	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())
Ejemplo n.º 2
0
	def tearDown(self):
		if self.cxn.is_open: self.cxn.close()
		laptop.quit()
		time.sleep(3)