class documentation
class CoreTests(TestCase): (source)
Tests for Automat's (currently private, implementation detail) core.
Method | test_initial |
Automaton.initialState is a descriptor that sets the initial state if it's not yet set, and raises ValueError if it is. |
Method | test_no |
Automaton.outputForInput raises NoTransition if no transition for that input is defined. |
Method | test_ |
A NoTransition exception describes the state and input symbol that caused it. |
Method | test_one |
Automaton.addTransition adds its input symbol to Automaton.inputAlphabet , all its outputs to Automaton.outputAlphabet , and causes Automaton.outputForInput to start returning the new state and output symbols. |
Method | test_one |
Automaton.addTransition raises a TypeError when given outputs that aren't iterable and doesn't add any transitions. |
Method | test_unhandled |
Automaton.unhandledTransition sets the outputs and end-state to be used for all unhandled transitions. |
Automaton.initialState
is a descriptor that sets the initial state if it's not yet set, and raises ValueError
if it is.
Automaton.addTransition
adds its input symbol to Automaton.inputAlphabet
, all its outputs to Automaton.outputAlphabet
, and causes Automaton.outputForInput
to start returning the new state and output symbols.
Automaton.addTransition
raises a TypeError when given outputs that aren't iterable and doesn't add any transitions.