I'm mocking up some data, and I need to be able to access properties via dot syntax in order to keep my runtime code in order. When I try to do the following, I get an error:
mockdata = object()
mockdata.name = "Hello"
object_under_test.evaluate(mockdata)
How can I write Python code which will enable me to set attributes like this without having to create a class?