#NEWLINE# def _validate_substitutions_dictionary( self , placeholders , substitutions ) : #NEWLINE# #INDENT# if ( not placeholders ) : #NEWLINE# #INDENT# raise ValueError ( "Got a dictionary of substitutions but the query doesn't have any placeholders" ) #NEWLINE# #UNINDENT# if ( set ( placeholders ) != set ( substitutions . keys ( ) ) ) : #NEWLINE# #INDENT# raise ValueError ( "Substitution keys don't match the placeholders" )