I\'m debugging some Python that takes, as input, a list of objects, each with some attributes.
I\'d like to hard-code some test values -- let\'s say, a list of four
Maybe you can use namedtuple to solve this as following:
from collections import namedtuple Mock = namedtuple('Mock', ['foo']) mock = Mock(foo=1) mock.foo // 1