Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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"
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"