Revision: 964
http://svn.sourceforge.net/pygccxml/?rev=964&view=rev
Author: roman_yakovenko
Date: 2007-03-31 10:13:57 -0700 (Sat, 31 Mar 2007)
Log Message:
-----------
adding redirection tester
Modified Paths:
--------------
pyplusplus_dev/docs/troubleshooting_guide/exceptions/test.py
Modified: pyplusplus_dev/docs/troubleshooting_guide/exceptions/test.py
===================================================================
--- pyplusplus_dev/docs/troubleshooting_guide/exceptions/test.py 2007-03-30 20:43:14 UTC (rev 963)
+++ pyplusplus_dev/docs/troubleshooting_guide/exceptions/test.py 2007-03-31 17:13:57 UTC (rev 964)
@@ -5,7 +5,7 @@
def __init__( self, app_error ):
Exception.__init__( self )
self._pimpl = app_error
-
+
def __str__( self ):
return self._pimpl.message()
@@ -30,6 +30,12 @@
except Exception, err:
self.failUnless( str( err ) == "xyz" )
+ def test_redirection( self ):
+ try:
+ my_exceptions.check_preconditions( True )
+ except Exception, err:
+ self.failUnless( err.application_name() == "xyz" )
+
def test_converter( self ):
try:
my_exceptions.check_preconditions( True )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|