MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_import

Method test_import

tests/test_torchaudio.py:7–11  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5
6class TestTorchaudio(unittest.TestCase):
7 def test_import(self):
8 waveform, sample_rate = torchaudio.load('/input/tests/data/test.wav')
9
10 self.assertEqual(2, len(waveform))
11 self.assertEqual(44100, sample_rate)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected