(name, given, expected)
| 150 | ], |
| 151 | ) |
| 152 | def test_raise_if_response_error(name, given, expected): |
| 153 | try: |
| 154 | raise_if_response_error(given) |
| 155 | assert expected is None, f"Case {name} expected get exception but none" |
| 156 | except Exception as e: |
| 157 | assert str(e) == str( |
| 158 | expected |
| 159 | ), f"Case {name} expected exception {expected} but got {e}" |
nothing calls this directly
no test coverage detected