I want to mock a class and for any attribute it should return the same string.
c = SomeMocking(all_attributes="abc")
c.foo == "abc"
True
c.bar == "abc"
True
Should https://docs.python.org/3/library/unittest.mock.html do the trick? I only find return_value
which can be used for function calls and not for arbitrary attributes.