def test_rule_variable_decorator_internals(self):
        def some_test_function(self): pass
        wrapper = rule_variable(StringType, 'Foo Name', options=['op1', 'op2'])
        func = wrapper(some_test_function)
        self.assertTrue(func.is_rule_variable)
        self.assertEqual(func.label, 'Foo Name')
        self.assertEqual(func.field_type, StringType)
        self.assertEqual(func.options, ['op1', 'op2'])
Make sure that the expected attributes are attached to a function
dataset/ETHPy150Open venmo/business-rules/tests/test_variables.py/RuleVariableTests.test_rule_variable_decorator_internals