'If the named method is not present in the class,
L{unpickleMethod} finds a method on the class of the instance
and returns a bound method from there.'

def test_instanceBuildingNameNotPresent(self):

    foo = Foo()
    m = unpickleMethod('method', foo, Bar)
    self.assertEqual(m, foo.method)
    self.assertIsNot(m, foo.method)
