Beispiel #1
0
    def testFlagParsingNewerNoWav(self):
        have_one, have_wav = sox.parse_help('''
        fopts: -1/-w/-l/-d -v volume -x

        Supported file formats: wve
        '''.split('\n'))
        self.assertTrue(have_one)
        self.assertFalse(have_wav)
Beispiel #2
0
    def testFlagParsingNewer(self):
        have_one, have_wav = sox.parse_help('''
        -1/-2/-3/-4/-8           Encoded sample size in bytes

        AUDIO FILE FORMATS: wav wve
        '''.split('\n'))
        self.assertTrue(have_one)
        self.assertTrue(have_wav)
Beispiel #3
0
    def testFlagParsingOld(self):
        have_one, have_wav = sox.parse_help('''
        fopts: -b/-w/-l/-d -v volume -x

        Supported file formats: vorbis vox wav wve
        '''.split('\n'))
        self.assertFalse(have_one)
        self.assertTrue(have_wav)