#NEWLINE# def test_datetime_default( self ) : #NEWLINE# #INDENT# ' Tests datetime defaults work properly ' #NEWLINE# default = datetime . now ( ) #NEWLINE# prop = DateTime ( default = default , required = True ) #NEWLINE# self . assertEqual ( prop . to_database ( None ) , prop . to_database ( default ) )