#NEWLINE# def test_range_date_day( self ) : #NEWLINE# #INDENT# with db_session : #NEWLINE# #INDENT# object1 = RangeDateDay ( name = 'foo' , created = datetime . datetime ( 2014 , 4 , 15 , 18 , 44 , 23 ) ) #NEWLINE# commit ( ) #NEWLINE# object2 = RangeDateDay . get_by_sql ( 'SELECT * FROM test_rangedateday WHERE id = $object1.id' ) #NEWLINE# #UNINDENT# self . assertTrue ( object1 . name , object1 . name )