def METHOD_NAME(self):
    self.stdcompleter = rlcompleter.Completer()
    self.completer = rlcompleter.Completer(dict(spam=int,
                                                egg=str,
                                                CompleteMe=CompleteMe))
    # forces stdcompleter to bind builtins namespace
    self.stdcompleter.complete('', 0)