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