'Override the deprecated lookupFunction function.'

def lookupFunction(self, name):

    if (name in self.expectations):
        result = self.expectations[name]
        return result
    else:
        return super(OverrideLocatorAMP, self).lookupFunction(name)
