'Test references search through method special attributes.'

def test_boundMethod(self):

    class Dummy:
        def dummy(self):
            pass
    o = Dummy()
    m = o.dummy
    self.assertIn('.__self__', reflect.objgrep(m, m.__self__, reflect.isSame))
    self.assertIn('.__self__.__class__', reflect.objgrep(m, m.__self__.__class__, reflect.isSame))
    self.assertIn('.__func__', reflect.objgrep(m, m.__func__, reflect.isSame))
