def test_converter(self): try: my_exceptions.check_preconditions(True) except my_exceptions.application_error, err: app_name = my_exceptions.get_application_name(err) self.failUnless("my_exceptions module" == app_name)
def test_base_error(self): try: my_exceptions.check_preconditions(True) 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() == "my_exceptions module")
def test_function_call(self): my_exceptions.check_preconditions(False)
def test_concrete_error(self): try: my_exceptions.check_preconditions(True) except my_exceptions.application_error, err: self.failUnless(str(err) == "xyz")
def test_converter( self ): try: my_exceptions.check_preconditions( True ) except my_exceptions.application_error, err: app_name = my_exceptions.get_application_name( err ) self.failUnless( "my_exceptions module" == app_name )
def test_redirection( self ): try: my_exceptions.check_preconditions( True ) except Exception, err: self.failUnless( err.application_name() == "my_exceptions module" )
def test_base_error( self ): try: my_exceptions.check_preconditions( True ) except Exception, err: self.failUnless( str( err ) == "xyz" )
def test_concrete_error( self ): try: my_exceptions.check_preconditions( True ) except my_exceptions.application_error, err: self.failUnless( str( err ) == "xyz" )
def test_function_call( self ): my_exceptions.check_preconditions( False )