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