'Invoking locateResponder under its old name, lookupFunction, should
emit a deprecation warning, but do the same thing.'

def test_lookupFunctionDeprecatedInvoke(self):

    locator = TestLocator()
    responderCallable = self.assertWarns(PendingDeprecationWarning, 'Call    locateResponder,    not    lookupFunction.', __file__, (lambda : locator.lookupFunction('simple')))
    result = responderCallable(amp.Box(greeting='ni    hao', cookie='5'))
    def done(values):
        self.assertEqual(values, amp.AmpBox(cookieplus='8'))
    return result.addCallback(done)
