def test_voice_statistics_dummy(): data_source = voice_statistics.WavFileDataSource("dummy", speakers=["fujitou"]) @raises(ValueError) def __test_invalid_speaker(): data_source = voice_statistics.WavFileDataSource("dummy", speakers=["test"]) @raises(ValueError) def __test_invalid_emotion(): data_source = voice_statistics.WavFileDataSource("dummy", speakers=["fujitou"], emotions="nnmnkwii") @raises(RuntimeError) def __test_nodir(data_source): data_source.collect_files() @raises(RuntimeError) def __test_no_trans(): voice_statistics.TranscriptionDataSource("dummy") __test_invalid_speaker() __test_invalid_emotion() __test_nodir(data_source) __test_no_trans()
def __test_invalid_emotion(): data_source = voice_statistics.WavFileDataSource("dummy", speakers=["fujitou"], emotions="nnmnkwii")
def __test_invalid_speaker(): data_source = voice_statistics.WavFileDataSource("dummy", speakers=["test"])