#NEWLINE# def testValidation( self ) : #NEWLINE# #INDENT# pos = Position ( size = 10 ) #NEWLINE# self . assertFalse ( pos . is_valid ( ) ) #NEWLINE# self . assertEqual ( len ( self . _dbdata [ 'errors' ] ) , 3 ) #NEWLINE# self . assertEqual ( len ( pos . _dbdata [ 'cleaned_data' ] ) , 1 ) #NEWLINE# self . assertTrue ( ( 'size' in pos . _dbdata [ 'cleaned_data' ] ) )