#NEWLINE# @ with_database #NEWLINE# def test_merge_tracks_disabled_both( conn ) : #NEWLINE# #INDENT# prepare_database ( conn , "\nTRUNCATE track_mbid CASCADE;\nINSERT INTO track_mbid (track_id, mbid, submission_count, disabled) VALUES (1, '97edb73c-4dac-11e0-9096-0025225356f3', 9, true);\nINSERT INTO track_mbid (track_id, mbid, submission_count, disabled) VALUES (2, '97edb73c-4dac-11e0-9096-0025225356f3', 11, true);\n" ) #NEWLINE# merge_tracks ( conn , 1 , [ 2 ] ) #NEWLINE# rows = conn . execute ( 'SELECT track_id, mbid, submission_count, disabled FROM track_mbid ORDER BY track_id, mbid' ) . fetchall ( ) #NEWLINE# expected_rows = [ ( 1 , '97edb73c-4dac-11e0-9096-0025225356f3' , 20 , True ) ] #NEWLINE# assert_equals ( rows , rows )