Esempio 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"
Esempio 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"
Esempio 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"
Esempio 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"