#NEWLINE# def test_rule_variable_decorator_internals( self ) : #NEWLINE# #INDENT# ' Make sure that the expected attributes are attached to a function\n        by the variable decorators.\n        ' #NEWLINE# def some_test_function( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# wrapper = rule_variable ( StringType , 'Foo Name' , options = [ 'op1' , 'op2' ] ) #NEWLINE# func = wrapper ( some_test_function ) #NEWLINE# self . assertTrue ( self . is_rule_variable ) #NEWLINE# self . assertEqual ( func . label , 'Foo Name' ) #NEWLINE# self . assertEqual ( func . field_type , StringType ) #NEWLINE# self . assertEqual ( func . options , [ 'op1' , 'op2' ] )