#NEWLINE# def _key_is_valid( dictionary , key ) : #NEWLINE# #INDENT# "Test that a dictionary key exists and that it's value is not blank." #NEWLINE# if ( key in dictionary ) : #NEWLINE# #INDENT# if dictionary [ key ] : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False