def METHOD_NAME(self):
    self._assert_completions_offered(entire_input="print foobar$(", word="foobar$(",
                                     expected_completions=["foobar$(echo ", 'foobar$(format-json '])