#NEWLINE# def test_import_fail( self ) : #NEWLINE# #INDENT# '\n        If the import of the cmodules\n        fails the original method should be used\n        ' #NEWLINE# class Foo ( ) : #NEWLINE# #INDENT# def __init__( self ) : #NEWLINE# #INDENT# self . optimizationEnabled = True #NEWLINE# self . called = False #NEWLINE# #UNINDENT# @ optimized #NEWLINE# def foo( self ) : #NEWLINE# #INDENT# self . called = True #NEWLINE# #UNINDENT# #UNINDENT# test_obj = Foo ( ) #NEWLINE# test_obj . foo ( ) #NEWLINE# assert self . called , 'If no cmodule exists, original method should be called'