Home | History | Annotate | Download | only in wardmodem

Lines Matching refs:state

23         state = global_state.GlobalStateSkeleton()
24 state._add_state_component('common_name', ['THIS_IS_FINE'])
26 state._add_state_component,
37 state = global_state.GlobalStateSkeleton()
39 state._add_state_component,
43 state._add_state_component,
47 state._add_state_component,
51 state._add_state_component,
55 state._add_state_component,
59 state._add_state_component,
63 state._add_state_component,
67 state._add_state_component,
77 state = global_state.GlobalStateSkeleton()
79 state._add_state_component('this_is_fine', ['A', 'B', 'C'])
80 state._add_state_component('so_is_this', [1, 1, 2, 3, 5, 8, 13])
81 state._add_state_component('and_even_this_guy', ['A', 'B3B_CC', 34])
99 # Now, add all state components.
108 self.state = GlobalStateSkeletonTestCase.TestGlobalState()
116 self.assertEqual(self.state.INVALID_VALUE, self.state['comp1'])
117 self.assertEqual(self.state.INVALID_VALUE, self.state['comp2'])
118 self.assertEqual(self.state.INVALID_VALUE, self.state['comp3'])
120 self.state['comp2'] = 'ALLOWED_VALUE_2_1'
121 self.assertEqual('ALLOWED_VALUE_2_1', self.state['comp2'])
122 self.state['comp2'] = 'ALLOWED_VALUE_2_2'
123 self.assertEqual('ALLOWED_VALUE_2_2', self.state['comp2'])
124 self.state['comp1'] = 'ALLOWED_VALUE_1_1'
125 self.assertEqual('ALLOWED_VALUE_1_1', self.state['comp1'])
129 """Wrap the read from state to check exceptions raised."""
130 return self.state[key]
133 """Wrap the assignment to state to check exceptions raised."""
134 self.state[key] = value