def setUp(self): with open('tests/fixtures/multierror.xml', 'rb') as xml: self.data = GsxError(xml=xml.read())
def test_exception(self): msg = 'Connection failed' e = GsxError(msg) self.assertEqual(e.message, msg)
def setUp(self): xml = open('tests/fixtures/multierror.xml', 'r').read() self.data = GsxError(xml=xml)