def METHOD_NAME(self):
    code = dedent("""\
        def f(p):
            r = p + 1
            print(r)
        r = 2 + 1
        print(r)
    """)
    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):
                r = p + 1
                print(r)
            f(2)
        """),
        self.mod1.read(),
    )