def testStatusException2(self): s = Status("StatusUri") try: raise s.makeException() except StatusException, e: assert str(e) == "StatusUri", "testStatusException2, str" assert e.getStatus() == s, "testStatusException2, getStatus"
def testStatusException1(self): s = Status("StatusUri", "message", "values") try: raise s.makeException() except StatusException, e: assert str(e) == "StatusUri: message", "testStatusException1, str" assert e.getStatus() == s, "testStatusException1, getStatus"