def test_ma_file_old(): s = MonkeysAudioFile(get_data_path('mac-396.ape')) assert s("~format") == "Monkey's Audio" assert s("~codec") == "Monkey's Audio" assert s("~encoding") == "" assert s("~#channels") == 2 assert s("~#samplerate") == 44100 # depends on the mutagen version assert s("~#bitdepth", 0) in (0, 16)
def setUp(self): self.f = get_temp_copy(get_data_path('silence-44-s.ape')) self.s = MonkeysAudioFile(self.f)
def setUp(self): fd, self.f = mkstemp(".ape") os.close(fd) shutil.copy(os.path.join(DATA_DIR, 'silence-44-s.ape'), self.f) self.s = MonkeysAudioFile(self.f)
def setUp(self): self.f = get_temp_copy(os.path.join(DATA_DIR, 'silence-44-s.ape')) self.s = MonkeysAudioFile(self.f)