(self, value, expected)
| 21 | saferepr = SafeRepr() |
| 22 | |
| 23 | def assert_saferepr(self, value, expected): |
| 24 | safe = self.saferepr(value) |
| 25 | |
| 26 | if len(safe) != len(expected): |
| 27 | raise AssertionError( |
| 28 | "Expected:\n%s\nFound:\n%s\n Expected len: %s Found len: %s" |
| 29 | % ( |
| 30 | expected, |
| 31 | safe, |
| 32 | len(expected), |
| 33 | len(safe), |
| 34 | ) |
| 35 | ) |
| 36 | assert safe == expected |
| 37 | return safe |
| 38 | |
| 39 | def assert_unchanged(self, value, expected): |
| 40 | actual = repr(value) |
no outgoing calls
no test coverage detected