#NEWLINE# def does_not_contain_value( self , * values ) : #NEWLINE# #INDENT# 'Asserts that val is a dict and does not contain the given value or values.' #NEWLINE# if ( ( not isinstance ( self . val , collections . Iterable ) ) or ( not hasattr ( self . val , 'keys' ) ) or ( not callable ( getattr ( self . val , 'keys' ) ) ) or ( not hasattr ( self . val , 'values' ) ) or ( not callable ( getattr ( self . val , 'values' ) ) ) ) : #NEWLINE# #INDENT# raise TypeError ( 'val is not dict-like' ) #NEWLINE# #UNINDENT# if ( len ( values ) == 0 ) : #NEWLINE# #INDENT# raise ValueError ( 'one or more value args must be given' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( values ) == 1 ) : #NEWLINE# #INDENT# if ( values [ 0 ] in self . val . values ( ) ) : #NEWLINE# #INDENT# self . _err ( ( 'Expected <%s> to not contain value <%s>, but did.' % ( self . val , values [ 0 ] ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# for v in values : #NEWLINE# #INDENT# if ( self in self . val . values ( ) ) : #NEWLINE# #INDENT# self . _err ( ( 'Expected <%s> to not contain values %s, but did contain <%s>.' % ( self . val , values , v ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return self