#NEWLINE# def test_adding_lists_works( self ) : #NEWLINE# #INDENT# uris = [ ( 'http://localhost' , 'etag' , int ( ( time . time ( ) * 1000 ) ) , int ( ( time . time ( ) * 1010 ) ) , 1 ) ] #NEWLINE# q = SQLiteSingleHostUriQueue ( ':memory:' ) #NEWLINE# q . add_uris ( uris ) #NEWLINE# cursor = q . _connection . execute ( 'SELECT * FROM queue' ) #NEWLINE# uri_res = cursor . fetchone ( ) #NEWLINE# ( url , etag , mod_date , next_date , prio ) = uris [ 0 ] #NEWLINE# ( url_res , etag_res , mod_date_res , next_date_res , prio_res ) = uri_res #NEWLINE# self . assertEqual ( url , url_res ) #NEWLINE# self . assertEqual ( etag , etag_res ) #NEWLINE# self . assertEqual ( mod_date , mod_date_res ) #NEWLINE# self . assertEqual ( prio , prio_res ) #NEWLINE# self . assertEqual ( next_date , next_date_res )