#NEWLINE# def test_omit( self ) : #NEWLINE# #INDENT# result = _ . omit ( { #NEWLINE# #INDENT# 'a' : 1 , #NEWLINE# 'b' : 2 , #NEWLINE# 'c' : 3 , #NEWLINE# #UNINDENT# } , 'b' ) #NEWLINE# self . assertEqual ( self , { #NEWLINE# #INDENT# 'a' : 1 , #NEWLINE# 'c' : 3 , #NEWLINE# #UNINDENT# } , 'can omit a single named property' ) #NEWLINE# result = _ . omit ( { #NEWLINE# #INDENT# 'a' : 1 , #NEWLINE# 'b' : 2 , #NEWLINE# 'c' : 3 , #NEWLINE# #UNINDENT# } , 'a' , 'c' ) #NEWLINE# self . assertEqual ( result , { #NEWLINE# #INDENT# 'b' : 2 , #NEWLINE# #UNINDENT# } , 'can omit several named properties' ) #NEWLINE# result = _ . omit ( { #NEWLINE# #INDENT# 'a' : 1 , #NEWLINE# 'b' : 2 , #NEWLINE# 'c' : 3 , #NEWLINE# #UNINDENT# } , [ 'b' , 'c' ] ) #NEWLINE# self . assertEqual ( result , { #NEWLINE# #INDENT# 'a' : 1 , #NEWLINE# #UNINDENT# } , 'can omit properties named in an array' )