#NEWLINE# def testClassDefinition( self ) : #NEWLINE# #INDENT# done = self . recvlineClient . expect ( 'done' ) #NEWLINE# self . _testwrite ( "class Foo:\n\tdef bar(self):\n\t\tprint 'Hello, world!'\n\nFoo().bar()\ndone" ) #NEWLINE# def finished( ign ) : #NEWLINE# #INDENT# self . _assertBuffer ( [ '>>> class Foo:' , '...     def bar(self):' , "...         print 'Hello, world!'" , '... ' , '>>> Foo().bar()' , 'Hello, world!' , '>>> done' ] ) #NEWLINE# #UNINDENT# return done . addCallback ( self )