#NEWLINE# def test_class_method( self ) : #NEWLINE# #INDENT# m = self . parser . parse_string ( '\n        class Foo {\n          void foo() {}\n        }\n        ' ) #NEWLINE# cls = self . _assert_declaration ( m , 'Foo' ) #NEWLINE# self . assertEquals ( self . body , [ MethodDeclaration ( 'foo' , body = [ ] ) ] )