|
From: <bov...@us...> - 2007-07-17 22:40:53
|
Revision: 1409
http://svn.sourceforge.net/pywebsvcs/?rev=1409&view=rev
Author: boverhof
Date: 2007-07-17 15:40:51 -0700 (Tue, 17 Jul 2007)
Log Message:
-----------
M test/test_t1.py
M ZSI/TC.py
FIX BUG [ 1724481 ] Error handling of enum serialization broken
Modified Paths:
--------------
trunk/zsi/ZSI/TC.py
trunk/zsi/test/test_t1.py
Modified: trunk/zsi/ZSI/TC.py
===================================================================
--- trunk/zsi/ZSI/TC.py 2007-07-17 22:26:07 UTC (rev 1408)
+++ trunk/zsi/ZSI/TC.py 2007-07-17 22:40:51 UTC (rev 1409)
@@ -917,7 +917,7 @@
def serialize(self, elt, sw, pyobj, name=None, orig=None, **kw):
if pyobj not in self.choices:
raise EvaluateException('Value not in enumeration list',
- ps.Backtrace(elt))
+ sw.Backtrace(elt))
String.serialize(self, elt, sw, pyobj, name=name, orig=orig, **kw)
Modified: trunk/zsi/test/test_t1.py
===================================================================
--- trunk/zsi/test/test_t1.py 2007-07-17 22:26:07 UTC (rev 1408)
+++ trunk/zsi/test/test_t1.py 2007-07-17 22:40:51 UTC (rev 1409)
@@ -27,6 +27,12 @@
self.goodTests.sort(lambda a,b: cmp(a[0], b[0]))
self.badTests.sort(lambda a,b: cmp(a[0], b[0]))
+ def check_bug1724481(self):
+ # [ 1724481 ] Error handling of enum serialization broken"
+ enum = TC.Enumeration(['Red', 'Blue', 'Green'], 'color')
+ sw = SoapWriter()
+ self.assertRaises(EvaluateException, sw.serialize,'ddd', enum)
+
def checkt1(self):
for key,val in self.badTests:
print "\n", "." * 60, key
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|