(self)
| 117 | self.properties[new_key] = self.properties.pop(old_key) |
| 118 | |
| 119 | def _pre_encode(self) -> None: |
| 120 | inst = Data(pn_message_instructions(self._msg)) |
| 121 | ann = Data(pn_message_annotations(self._msg)) |
| 122 | props = Data(pn_message_properties(self._msg)) |
| 123 | body = Data(pn_message_body(self._msg)) |
| 124 | |
| 125 | inst.clear() |
| 126 | if self.instructions is not None: |
| 127 | inst.put_object(self.instructions) |
| 128 | ann.clear() |
| 129 | if self.annotations is not None: |
| 130 | ann.put_object(self.annotations) |
| 131 | props.clear() |
| 132 | if self.properties is not None: |
| 133 | self._check_property_keys() |
| 134 | props.put_object(self.properties) |
| 135 | body.clear() |
| 136 | if self.body is not None: |
| 137 | body.put_object(self.body) |
| 138 | |
| 139 | def _post_decode(self) -> None: |
| 140 | inst = Data(pn_message_instructions(self._msg)) |
no test coverage detected