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