Ejemplo n.º 1
0
    def testencode(self):
        """Validate that encode works correctly"""
        oggify = Oggify(self.src_dir, self.dst_dir, self.options,
                self.decoder, self.encoder)
        sev = oggify._encode.values()
        sev.sort()

        oggify.encode()
        self.assertEqual(sev, check_files(self.dst))
Ejemplo n.º 2
0
    def testnewfileencode(self):
        """Validate that increment encode works correctly"""
        self.src += add_src
        make_files(add_src)
        make_files(self.dst)

        add_src.sort()
        add_dst = create_dst_list(add_src)
        self.dst += add_dst
        add_dst.sort()

        oggify = Oggify(self.src_dir, self.dst_dir, self.options,
                self.decoder, self.encoder)
        sev = oggify._encode.values()
        sev.sort()

        oggify.encode()
        self.assertEqual(sev, check_files(add_dst))