#NEWLINE# def test_nested_class( self ) : #NEWLINE# #INDENT# definitions = self . check_defined_names ( '\n        class L1:\n            class L2:\n                class L3:\n                    def f(): pass\n                def f(): pass\n            def f(): pass\n        def f(): pass\n        ' , [ 'L1' , 'f' ] ) #NEWLINE# subdefs = definitions [ 0 ] . defined_names ( ) #NEWLINE# subsubdefs = subdefs [ 0 ] . defined_names ( ) #NEWLINE# self . assert_definition_names ( definitions , [ 'L2' , 'f' ] ) #NEWLINE# self . assert_definition_names ( subsubdefs , [ 'L3' , 'f' ] ) #NEWLINE# self . assert_definition_names ( subsubdefs [ 0 ] . defined_names ( ) , [ 'f' ] )