Replace _event_dict_property with DictProperty

this amounts to the same thing, but replaces `_event_dict` with `_dict`, and
removes some of the function layers generated by `property`.
This commit is contained in:
Richard van der Hoff 2020-02-07 13:08:34 +00:00
parent 49f877d32e
commit 43b2be9764
2 changed files with 80 additions and 66 deletions

View file

@ -240,7 +240,7 @@ class RedactionTestCase(unittest.HomeserverTestCase):
built_event = yield self._base_builder.build(prev_event_ids)
built_event._event_id = self._event_id
built_event._event_dict["event_id"] = self._event_id
built_event._dict["event_id"] = self._event_id
assert built_event.event_id == self._event_id
return built_event