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_error():
try:
raise ifcfg.exc.IfcfgError('Error Msg')
except ifcfg.exc.IfcfgError as e:
eq_(e.msg, 'Error Msg')
raise
def test_error():
try:
raise ifcfg.exc.IfcfgError('Error Msg')
except ifcfg.exc.IfcfgError as e:
eq_(e.msg, 'Error Msg')
raise