#NEWLINE# @ with_database #NEWLINE# def test_can_merge_tracks( conn ) : #NEWLINE# #INDENT# prepare_database ( groups , '\nINSERT INTO fingerprint (fingerprint, length, track_id, submission_count)\n    VALUES (%(fp1)s, %(len1)s, 1, 1), (%(fp2)s, %(len2)s, 2, 1),\n           (%(fp3)s, %(len3)s, 3, 1);\n    ' , dict ( fp1 = TEST_1A_FP_RAW , len1 = TEST_1A_LENGTH , fp2 = TEST_1B_FP_RAW , len2 = TEST_1B_LENGTH , fp3 = TEST_2_FP_RAW , len3 = TEST_2_LENGTH ) ) #NEWLINE# groups = can_merge_tracks ( conn , [ 1 , 2 , 3 ] ) #NEWLINE# assert_equal ( [ set ( [ 1 , 2 ] ) ] , groups )