def test_empty(self): actual = file_info.bitrate(EMPTY_FILE) expected = 16 self.assertEqual(expected, actual)
def test_wav(self): actual = file_info.bitrate(INPUT_FILE) expected = 16 self.assertEqual(expected, actual)
def test_aiff(self): actual = file_info.bitrate(INPUT_FILE2) expected = 32 self.assertEqual(expected, actual)
def test_empty(self): actual = file_info.bitrate(EMPTY_FILE) expected = None
def test_wav_pathlib(self): actual = file_info.bitrate(Path(INPUT_FILE)) expected = 706000.0 self.assertEqual(expected, actual)