#NEWLINE# def test_get_story_by_url_oldest( self ) : #NEWLINE# #INDENT# user01 = users . create_user ( username = 't1' , password = 'test' ) #NEWLINE# user02 = users . create_user ( username = 't2' , password = 'test' ) #NEWLINE# submission01 = self . create_submission ( user = user01 ) #NEWLINE# submission02 = self . create_submission ( user = user02 ) #NEWLINE# result = submission_queries . get_story_by_url_oldest ( 'http://google.com' ) #NEWLINE# if ( result . __class__ == Submission ) : #NEWLINE# #INDENT# assert ( result . id == submission01 . id ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert False