def test_instanceBuildingNamePresent(self):
        """
        L{unpickleMethod} returns an instance method bound to the
        instance passed to it.
        """
        foo = Foo()
        m = unpickleMethod('method', foo, Foo)
        self.assertEqual(m, foo.method)
        self.assertIsNot(m, foo.method)

        L{unpickleMethod} returns an instance method bound to the
        instance passed to it.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/persisted/test/test_styles.py