#NEWLINE# def test_extra_with_required( ) : #NEWLINE# #INDENT# 'Verify that Required does not break Extra.' #NEWLINE# schema = Schema ( { #NEWLINE# #INDENT# Required ( 'toaster' ) : str , #NEWLINE# Extra : object , #NEWLINE# #UNINDENT# } ) #NEWLINE# r = schema ( { #NEWLINE# #INDENT# 'toaster' : 'blue' , #NEWLINE# 'another_valid_key' : 'another_valid_value' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert_equal ( r , { #NEWLINE# #INDENT# 'toaster' : 'blue' , #NEWLINE# 'another_valid_key' : 'another_valid_value' , #NEWLINE# #UNINDENT# } )