def test_viewPatches_random (self): keys = getCalibration() key_sequence = 20*[keys['right']] + 20*[keys['left']] random.shuffle(key_sequence) key_sequence.append(keys['esc']) keyReader = KeyReaderSequence(key_sequence) viewPatches (self.f, params = {'random': True, 'key_reader': keyReader})
def test_viewPatches_sequential (self): keys = getCalibration() key_sequence = 20*[keys['right']] + 20*[keys['left']] + 5*[keys['right']] + [keys['esc']] keyReader = KeyReaderSequence(key_sequence) viewPatches (self.f, params = {'key_reader': keyReader})