#NEWLINE# def test_classmethod( self ) : #NEWLINE# #INDENT# Thingy = self . _fixture ( ) #NEWLINE# foob = langhelpers . public_factory ( Thingy . foobar , '.sql.elements.foob' ) #NEWLINE# eq_ ( foob ( 3 , 4 ) . value , 7 ) #NEWLINE# eq_ ( foob ( x = 3 , y = 4 ) . value , 7 ) #NEWLINE# eq_ ( foob . __doc__ , 'do the foobar' ) #NEWLINE# eq_ ( foob . __module__ , 'sqlalchemy.sql.elements' ) #NEWLINE# assert Thingy . foobar . __doc__ . startswith ( 'This function is mirrored;' )