<s> """<STR_LIT>""" <EOL> import inspect <EOL> import types <EOL> import six <EOL> def callable_hasattr ( callable_ , attr_name ) : <EOL> function = get_function ( callable_ ) <EOL> return hasattr ( function , attr_name ) <EOL> def callable_setattr ( callable_ , attr_name , attr_value ) : <EOL> function = get_function ( callable_ ) <EOL> setattr ( function , attr_name , attr_value ) <EOL> def get_function ( callable_ ) : <EOL> """<STR_LIT>""" <EOL> if isinstance ( callable_ , types . MethodType ) : <EOL> return six . get_method_function ( callable_ ) <EOL> return callable_ <EOL> def is_fixture_method ( callable_ ) : <EOL> """<STR_LIT>""" <EOL> if not inspect . isroutine ( callable_ ) : <EOL> return False <EOL> return callable_hasattr ( callable_ , '<STR_LIT>' ) </s>
