def test_check_init_is_none(self):
     smc = StateMachine()
     smc.add_transition(0, 1, 'a')
     with self.assertRaises(BaseException):
         smc._check_smc()
 def test_check_tran_is_empty(self):
     smc = StateMachine()
     smc.add_init_state(0)
     smc.add_finish_state(1)
     with self.assertRaises(BaseException):
         smc._check_smc()
 def test_check_states_is_empty(self):
     smc = StateMachine()
     with self.assertRaises(BaseException):
         smc._check_smc()