def test_missing(self) : db = HrtfDatabase('testhrtf/db.hrtfs') try : db.wavefile(0,91) self.fail("An exception was expected") except KeyError, e: self.assertEqual(e.message, (0,91))
def test_existing(self) : db = HrtfDatabase('testhrtf/db.hrtfs') self.assertEqual('testhrtf/left.wav', db.wavefile(0,90))