'Merging C{foo} into C{bar} returns a function with C{bar}\'s
dictionary, updated by C{foo}\'s.'

def test_instanceDictionaryIsMerged(self):

    def foo():
        pass
    foo.a = 1
    foo.b = 2
    def bar():
        pass
    bar.b = 3
    bar.c = 4
    baz = util.mergeFunctionMetadata(foo, bar)
    self.assertEqual(foo.a, baz.a)
    self.assertEqual(foo.b, baz.b)
    self.assertEqual(bar.c, baz.c)
