Exemplo n.º 1
0
 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"
Exemplo n.º 2
0
 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"
Exemplo n.º 3
0
 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"
Exemplo n.º 4
0
 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"