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