def METHOD_NAME(Script, environment):
    code = dedent('''
    class Foo:
        def bar(self):
            pass
    foo = Foo()
    foo.bar.__func__''')
    assert [c.name for c in Script(code).complete()] == ['__func__']