#NEWLINE# def is_less_than( self , other ) : #NEWLINE# #INDENT# 'Asserts that val is numeric and is less than other.' #NEWLINE# self . _validate_compareable ( self ) #NEWLINE# if ( self . val >= other ) : #NEWLINE# #INDENT# if ( type ( self . val ) is datetime . datetime ) : #NEWLINE# #INDENT# self . _err ( ( 'Expected <%s> to be less than <%s>, but was not.' % ( self . val . strftime ( '%Y-%m-%d %H:%M:%S' ) , other . strftime ( '%Y-%m-%d %H:%M:%S' ) ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _err ( ( 'Expected <%s> to be less than <%s>, but was not.' % ( self . val , other ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return self