def METHOD_NAME(self):
    text = self.text
    expand = self.auto_expand.expand_word_event
    equal = self.assertEqual
    # no expansion candidate found
    equal(self.auto_expand.getwords(), [])
    equal(expand('event'), 'break')
    text.insert('insert', 'bx cy dz a')
    equal(self.auto_expand.getwords(), [])
    # reset state by successfully expanding once
    # move cursor to another position and expand again
    text.insert('insert', 'ac xy a ac ad a')
    text.mark_set('insert', '1.7')
    expand('event')
    initial_state = self.auto_expand.state
    text.mark_set('insert', '1.end')
    expand('event')
    new_state = self.auto_expand.state
    self.assertNotEqual(initial_state, new_state)