(ex_type)
| 72 | |
| 73 | @contextlib.contextmanager |
| 74 | def assertRaises(ex_type): |
| 75 | try: |
| 76 | yield |
| 77 | assert False, f"expected {ex_type}" |
| 78 | except BaseException as ex: |
| 79 | if isinstance(ex, AssertionError): |
| 80 | raise |
| 81 | assert type(ex) is ex_type, f"{ex} should be {ex_type}" |
| 82 | |
| 83 | |
| 84 | def test_basic(): |
no outgoing calls
no test coverage detected
searching dependent graphs…