#NEWLINE# def test_string_rule_variable( self ) : #NEWLINE# #INDENT# @ string_rule_variable ( label = 'My Label' ) #NEWLINE# def string_var( ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# self . assertTrue ( getattr ( string_var , 'is_rule_variable' ) ) #NEWLINE# self . assertEqual ( getattr ( string_var , 'field_type' ) , StringType ) #NEWLINE# self . assertEqual ( getattr ( string_var , 'label' ) , 'My Label' )