From 4a7f2742973c9afd9e4d42626ca6f53852402b9b 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 --- deep_speech_2/tests/test_setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deep_speech_2/tests/test_setup.py b/deep_speech_2/tests/test_setup.py index 71a46afb..18b9c1a0 100644 --- a/deep_speech_2/tests/test_setup.py +++ b/deep_speech_2/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) -- GitLab