#NEWLINE# def test_subsystem_access( self ) : #NEWLINE# #INDENT# prob = Problem ( root = ExampleGroup ( ) ) #NEWLINE# root = prob . root #NEWLINE# self . assertEqual ( root . G2 , prob . root . G2 ) #NEWLINE# self . assertEqual ( root . G2 . C1 , prob . root . C1 ) #NEWLINE# self . assertEqual ( root . G2 . G1 , prob . root . G1 ) #NEWLINE# self . assertEqual ( root . G2 . G1 . C2 , prob . root . C2 ) #NEWLINE# self . assertEqual ( root . G3 , prob . root . G3 ) #NEWLINE# self . assertEqual ( root . G3 . C3 , prob . root . C3 ) #NEWLINE# self . assertEqual ( root . G3 . C4 , prob . root . C4 ) #NEWLINE# prob = Problem ( root = ExampleGroupWithPromotes ( ) ) #NEWLINE# root = prob . root #NEWLINE# self . assertEqual ( root . G2 , prob . root . G2 ) #NEWLINE# self . assertEqual ( root . G2 . C1 , prob . root . C1 ) #NEWLINE# self . assertEqual ( root . G2 . G1 , prob . root . G1 ) #NEWLINE# self . assertEqual ( root . G2 . G1 . C2 , prob . root . C2 ) #NEWLINE# self . assertEqual ( root . G3 , prob . root . G3 ) #NEWLINE# self . assertEqual ( root . G3 . C3 , prob . root . C3 ) #NEWLINE# self . assertEqual ( root . G3 . C4 , prob . root . C4 )