def test_timeout(self): copool.add(self.__set_buffer, funcid="test", timeout=100) copool.pause("test") copool.resume("test") copool.remove("test") with pytest.raises(ValueError): copool.step("test")
def test_step(self): copool.add(self.__set_buffer, funcid="test") copool.pause("test") self.assertTrue(copool.step("test")) self.go = False self.assertFalse(copool.step("test")) self.assertRaises(ValueError, copool.step, "test")
def test_step(self): copool.add(self.__set_buffer, funcid="test") copool.pause("test") assert copool.step("test") self.go = False assert not copool.step("test") with pytest.raises(ValueError): copool.step("test")