comparison test/test_process.py @ 101:0c5a4dc04ed9

Remove some unimplemented bits
author Chris Cannam
date Tue, 10 Feb 2015 12:08:22 +0000
parents 72be91c3cb3d
children 9343eee50605
comparison
equal deleted inserted replaced
100:72be91c3cb3d 101:0c5a4dc04ed9
72 # 72 #
73 expected = blocksize + i * blocksize + 1 73 expected = blocksize + i * blocksize + 1
74 actual = results[i]["values"][0] 74 actual = results[i]["values"][0]
75 assert actual == expected 75 assert actual == expected
76 76
77 def test_process_summary_frames(): 77 def test_process_frames_summary():
78 buf = input_data(blocksize * 10) 78 buf = input_data(blocksize * 10)
79 ff = fr.frames_from_array(buf, blocksize, blocksize) 79 ff = fr.frames_from_array(buf, blocksize, blocksize)
80 results = list(vamp.process_frames(ff, rate, blocksize, plugin_key, "input-summary", {})) 80 results = list(vamp.process_frames(ff, rate, blocksize, plugin_key, "input-summary", {}))
81 assert len(results) == 10 81 assert len(results) == 10
82 for i in range(len(results)): 82 for i in range(len(results)):
101 # 101 #
102 expected = blocksize + i * blocksize + 1 102 expected = blocksize + i * blocksize + 1
103 actual = results[i]["input-summary"]["values"][0] 103 actual = results[i]["input-summary"]["values"][0]
104 assert actual == expected 104 assert actual == expected
105 105
106 def test_process_multi_summary_frames(): 106 def test_process_frames_multi_summary():
107 buf = input_data(blocksize * 10) 107 buf = input_data(blocksize * 10)
108 ff = fr.frames_from_array(buf, blocksize, blocksize) 108 ff = fr.frames_from_array(buf, blocksize, blocksize)
109 results = list(vamp.process_frames_multiple_outputs(ff, rate, blocksize, plugin_key, [ "input-summary" ], {})) 109 results = list(vamp.process_frames_multiple_outputs(ff, rate, blocksize, plugin_key, [ "input-summary" ], {}))
110 assert len(results) == 10 110 assert len(results) == 10
111 for i in range(len(results)): 111 for i in range(len(results)):