For test purposes I need to create something like an empty object with some particular fields. Let me clarify by example:
Currently there is a structure:
var = {
'blas': {
'bla': 0.250,
'bla1': 0.300,
'bla2': 6,
...
},
'somth1': self.smth1,
'something': [
{ 'h1': 66.00 },
{ 'h2': 47.00 },
{ 'h3': 85.00 },
{ 'h4': 32.00 },
{ 'h5': 34.00 }
],
'this_has_to_be_object'.field: 1
}
The thing I want is for 'this_has_to_be_object' to be an actual object to which I can add some fields and set values. The objective of such behaviour is to test another function that operates with 'this_has_to_be_object'.field.