From de212572ed8e9d0167e643a52f5556ff6b97dba1 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Fri, 28 Jul 2017 18:10:18 +0800 Subject: [PATCH] update unittest with comments --- tests/test_setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_setup.py b/tests/test_setup.py index 71a46afb..18b9c1a0 100644 --- a/tests/test_setup.py +++ b/tests/test_setup.py @@ -14,8 +14,8 @@ class TestSetup(unittest.TestCase): file = 'test.wav' sf.write(file, data, 44100, format='WAV', subtype='FLOAT') read, fs = sf.read(file) - assert np.all(read == data) - assert fs == 44100 + self.assertTrue(np.all(read == data)) + self.assertEqual(fs, 44100) os.remove(file)