Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)
Do the actual work

src/p/o/portify-HEAD/tests/test_converter.py   portify(Download)
    fname = '%s/Input/flac/front.jpg' % (cwd,)
    c = converter.Converter(fname, 'mp3')
    c.convert()
    oname = "%s/Output/flac/front.jpg" % (cwd,)
    tools.eq_(oname, c.destfilename)
    oname = '%s/Output/flac/%s.ogg' % (cwd, name)
    c = converter.Converter(fname, 'ogg')
    c.convert()
    tools.eq_(oname, c.destfilename)
    f = oggvorbis.Open(oname)
    oname = '%s/Output/mp3/%s.mp3' % (cwd, name)
    c = converter.Converter(fname, 'mp3')
    c.convert()
    tools.ok_(os.path.exists(oname))
    f = easyid3.Open(oname)

src/p/o/portify-HEAD/tests/test_all.py   portify(Download)
    for c, fname in enumerate(f.walk()):
        con = converter.Converter(fname)
        con.convert()
        tools.ok_(os.path.exists(con.destfilename))
    tools.eq_(c+1, TOTAL)

src/p/o/portify-1.0/tests/test_converter.py   portify(Download)
    fname = '%s/Input/flac/front.jpg' % (cwd,)
    c = converter.Converter(fname, 'mp3')
    c.convert()
    oname = "%s/Output/flac/front.jpg" % (cwd,)
    tools.eq_(oname, c.destfilename)
    oname = '%s/Output/flac/%s.ogg' % (cwd, name)
    c = converter.Converter(fname, 'ogg')
    c.convert()
    tools.eq_(oname, c.destfilename)
    f = oggvorbis.Open(oname)
    oname = '%s/Output/mp3/%s.mp3' % (cwd, name)
    c = converter.Converter(fname, 'mp3')
    c.convert()
    tools.ok_(os.path.exists(oname))
    f = easyid3.Open(oname)

src/p/o/portify-1.0/tests/test_all.py   portify(Download)
    for c, fname in enumerate(f.walk()):
        con = converter.Converter(fname)
        con.convert()
        tools.ok_(os.path.exists(con.destfilename))
    tools.eq_(c+1, TOTAL)