#NEWLINE# @ dec . slow #NEWLINE# def test_len( self ) : #NEWLINE# #INDENT# class Foo ( ) : #NEWLINE# #INDENT# def __len__( self ) : #NEWLINE# #INDENT# return 10 #NEWLINE# #UNINDENT# #UNINDENT# a = Foo ( ) #NEWLINE# res = inline_tools . inline ( 'return_val = a.len();' , [ 'a' ] ) #NEWLINE# assert_equal ( self , len ( a ) )