def METHOD_NAME(self):
    Equal = self.assertEqual
    autocomplete = self.autocomplete
    # Test that the autocomplete event is ignored if user is pressing a
    # modifier key in addition to the tab key
    ev = Event(mc_state=True)
    self.assertIsNone(autocomplete.autocomplete_event(ev))
    del ev.mc_state
    # If autocomplete window is open, complete() method is called
    self.text.insert('1.0', 're.')
    # This must call autocomplete._make_autocomplete_window()
    Equal(self.autocomplete.autocomplete_event(ev), 'break')
    # If autocomplete window is not active or does not exist,
    # open_completions is called. Return depends on its return.
    autocomplete._remove_autocomplete_window()
    o_cs = Func()  # .result = None
    autocomplete.open_completions = o_cs
    Equal(self.autocomplete.autocomplete_event(ev), None)
    Equal(o_cs.args, (False, True, True))
    o_cs.result = True
    Equal(self.autocomplete.autocomplete_event(ev), 'break')
    Equal(o_cs.args, (False, True, True))