def test_getattr_dunder(self):

        class A():
            pass

        a = A()
        a.b = A()
        a.b.name = 'spam'
        self.assertEqual(getattr_dunder(a, 'b__name'), 'spam')
getattr_dunder works recursively
dataset/ETHPy150Open allegro/ralph/src/ralph/admin/tests/tests_helpers.py/ModelFieldsTestCase.test_getattr_dunder