def METHOD_NAME(self) -> None:
    cr = bahc.CodeRunner("# test", "path", [])
    m = cr.new_module()
    assert not cr.ran
    result = {}
    def post_check():
        result['ran'] = True
    cr.run(m, post_check)
    assert cr.ran
    assert result == dict(ran=True)