#NEWLINE# def test_maps( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# maps = nis . maps ( ) #NEWLINE# #UNINDENT# except nis . error as msg : #NEWLINE# #INDENT# if support . verbose : #NEWLINE# #INDENT# print ( 'Test Skipped:' , msg ) #NEWLINE# #UNINDENT# return #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# maps . remove ( 'passwd.adjunct.byname' ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# done = 0 #NEWLINE# for nismap in maps : #NEWLINE# #INDENT# mapping = nis . cat ( nismap ) #NEWLINE# for ( k , v ) in mapping . items ( ) : #NEWLINE# #INDENT# if ( not k ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( nis . match ( k , nismap ) != v ) : #NEWLINE# #INDENT# self . fail ( ( "NIS match failed for key `%s' in map `%s'" % ( k , nismap ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# done = 1 #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# if mapping : #NEWLINE# #INDENT# break