'After merging C{foo}\'s data into C{bar}, the returned function behaves
as if it is C{bar}.'

def test_mergedFunctionBehavesLikeMergeTarget(self):

    foo_object = object()
    bar_object = object()
    def foo():
        return foo_object
    def bar(x, y, ab, c=10, *d, **e):
        (a, b) = ab
        return bar_object
    baz = util.mergeFunctionMetadata(foo, bar)
    self.assertIs(baz(1, 2, (3, 4), quux=10), bar_object)
