Changeset 9f9f63f for tests/python


Ignore:
Timestamp:
Nov 1, 2007, 2:06:31 PM (17 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
d1ec8cb
Parents:
b660fbc
Message:

aubioonset test: make sure default parameters detect the woodblock

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/python/examples/aubioonset.py

    rb660fbc r9f9f63f  
    1010    """ test aubioonset with default parameters """
    1111    self.getOutput()
     12    assert len(self.output) != 0, self.output
     13    assert len(str(self.output)) != 0, "no output produced with command:\n" \
     14      + self.command
    1215
    1316  def test_aubioonset_with_inf_silence(self):
     
    2326    # only one onset in woodblock.aiff
    2427    assert len(self.output.split('\n')) == 1
    25     assert len(str(self.output)) != 0, "no output produced with command:\n" + self.command
     28    assert len(str(self.output)) != 0, "no output produced with command:\n" \
     29      + self.command
    2630    # onset should be at 0.00000
    2731    assert float(self.output.strip()) == 0.
     
    4448
    4549class aubioonset_test_case_phase(aubioonset_test_case):
    46   def setUp(self, options = " -O phase "):
     50  def setUp(self, options = " -O phase"):
    4751    aubioonset_test_case.setUp(self, options = options)
    4852
     
    5660
    5761if __name__ == '__main__':
     62
    5863  unittest.main()
Note: See TracChangeset for help on using the changeset viewer.