Changeset 5e394ecc for python/tests


Ignore:
Timestamp:
Jul 10, 2015, 12:16:19 AM (9 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:
efa62ce
Parents:
913a7f1
Message:

tests/test_musicutils.py: improve test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_musicutils.py

    r913a7f1 r5e394ecc  
    99        window("default", 1024)
    1010
     11    def test_fail_name_not_string(self):
     12        try:
     13            window(10, 1024)
     14        except ValueError, e:
     15            pass
     16        else:
     17            self.fail('non-string window type does not raise a ValueError')
     18
     19    def test_fail_size_not_int(self):
     20        try:
     21            window("default", "default")
     22        except ValueError, e:
     23            pass
     24        else:
     25            self.fail('non-integer window length does not raise a ValueError')
     26
    1127if __name__ == '__main__':
    1228    from unittest import main
Note: See TracChangeset for help on using the changeset viewer.