def testSetSate(self):
        self.state.set('a_state')
        self.assertEqual(self.state, ['a_state'])
        self.state.set('state2')
        self.assertEqual(self.state, ['a_state', 'state2'])
Test State.set().
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/markdown/regression-tests.py/TestBlockParserState.testSetSate