def test_inside(self): res = get_member(self.b_obj, 'a_mem.a') self.assertEqual(res(), 0)
def test_direct(self): res = get_member(self.a_obj, 'a') self.assertEqual(res(), 0)