class TestInit(unittest.TestCase): def setUp(self): self.sc = StateControl("me") def testWithArgs(self): try: self.sc.init(None) except TypeError, _e: assert True else:
class TestStop(unittest.TestCase): def setUp(self): self.sc = StateControl("me") def testNoArgs(self): assert isinstance(self.sc.stop(), iApiAction) def testWithArgsIsNone(self): try: self.sc.stop(None) except TypeError, _e: assert True else:
def setUp(self): self.sc = StateControl("me")