#NEWLINE# def test_class_in_namespace_multiple_with_one_closed( self ) : #NEWLINE# #INDENT# code = 'namespace A { namespace B {} namespace C { class Foo; }}' #NEWLINE# nodes = list ( MakeBuilder ( code ) . generate ( ) ) #NEWLINE# self . assertEqual ( 1 , len ( self ) , repr ( nodes ) ) #NEWLINE# self . assertEqual ( Class ( 'Foo' , namespace = [ 'A' , 'C' ] ) , nodes [ 0 ] )