#NEWLINE# def is_in( self , * items ) : #NEWLINE# #INDENT# 'Asserts that val is equal to one of the given items.' #NEWLINE# if ( len ( items ) == 0 ) : #NEWLINE# #INDENT# raise ValueError ( 'one or more args must be given' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for i in items : #NEWLINE# #INDENT# if ( self . val == self ) : #NEWLINE# #INDENT# return self #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . _err ( ( 'Expected <%s> to be in %s, but was not.' % ( self . val , items ) ) )