#NEWLINE# def testIterators_04_nonrecursive_withbranches( self ) : #NEWLINE# #INDENT# p = makeTDInstance ( ) #NEWLINE# items = [ ( 'a.v' , 1 ) , ( 'b' , 2 ) , ( 'c' , 3 ) , ( 'aa.b.c.d.e' , 4 ) ] #NEWLINE# p . set ( ** dict ( v ) ) #NEWLINE# nrwb = [ ( k , p . get ( k ) ) for k in [ 'a' , 'b' , 'c' , 'aa' ] ] #NEWLINE# p . freeze ( ) #NEWLINE# self . assert_ ( ( set ( p . iterkeys ( recursive = False , branch_mode = 'all' ) ) == set ( [ k for ( k , v ) in nrwb ] ) ) ) #NEWLINE# self . assert_ ( ( set ( p . itervalues ( recursive = False , branch_mode = 'all' ) ) == set ( [ v for ( k , v ) in nrwb ] ) ) ) #NEWLINE# self . assert_ ( ( set ( p . iteritems ( recursive = False , branch_mode = 'all' ) ) == set ( nrwb ) ) )