(self, actual)
| 287 | ) |
| 288 | |
| 289 | def __eq__(self, actual) -> bool: |
| 290 | try: |
| 291 | if set(actual.keys()) != set(self.expected.keys()): |
| 292 | return False |
| 293 | except AttributeError: |
| 294 | return False |
| 295 | |
| 296 | return super().__eq__(actual) |
| 297 | |
| 298 | def _yield_comparisons(self, actual): |
| 299 | for k in self.expected.keys(): |