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_parser_error():
try:
raise ifcfg.exc.IfcfgParserError('Error Msg')
except ifcfg.exc.IfcfgParserError as e:
eq_(e.msg, 'Error Msg')
raise
def test_parser_error():
try:
raise ifcfg.exc.IfcfgParserError('Error Msg')
except ifcfg.exc.IfcfgParserError as e:
eq_(e.msg, 'Error Msg')
raise
@raises(ifcfg.exc.IfcfgParserError)
def test_parser_error():
try:
raise ifcfg.exc.IfcfgParserError('Error Msg')
except ifcfg.exc.IfcfgParserError as e:
eq_(e.msg, 'Error Msg')
raise
def __init__(self, *args, **kw):
super(IfcfgParserError, self).__init__(*args, **kw)