示例#1
0
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:
示例#2
0
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:
示例#3
0
 def setUp(self):
     self.sc = StateControl("me")