def METHOD_NAME(self):
    code = dedent("""\
        def f(p):
            print(p + 1)
        print(1 + 1)
    """)
    self.mod1.write(code)
    user = UseFunction(self.project, self.mod1, code.rindex("f"))
    self.project.do(user.get_changes())
    self.assertEqual(
        dedent("""\
            def f(p):
                print(p + 1)
            f(1)
        """),
        self.mod1.read(),
    )