def test_geterror(): spice.setmsg("some error occured") spice.sigerr("error") assert spice.failed() assert spice.getmsg("SHORT", 40) == "error" assert spice.getmsg("LONG", 200) == "some error occured" spice.reset()
def test_geterror(): spice.setmsg("some error occured") spice.sigerr("error") assert spice.failed() assert spice.getmsg("SHORT", 40) == "error" assert spice.getmsg("LONG", 200) == "some error occured"