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

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/p/o/portify-HEAD/tests/test_filesystem.py   portify(Download)
def test_no_preexisting():
    """Test that we get the right number of files when no converted files
    are pre-existing"""
    w = filesystem.Walker()
    tools.eq_(TOTAL, len(list(w.walk())))
    shutil.copy("%s/Source/front.jpg" % (cwd,), "%s/Output/flac/front.jpg" % (cwd,))
    sub = c + 2
    tools.eq_(TOTAL - sub, len(list(w.walk())))
 
@tools.with_setup(make_single_output, delete_single_output)
        shutil.copy(source, destfile)
        touch(destfile, (st.st_atime, st.st_mtime))
    tools.eq_(TOTAL, len(list(w.walk())))
 
@tools.with_setup(make_single_output, delete_single_output)
        destfile = '%s/Input/flac/%02d - artist - track title.madeup' % (cwd,n)
        shutil.copy(source, destfile)
    tools.eq_(TOTAL, len(list(w.walk())))
 
 

src/p/o/portify-HEAD/tests/test_all.py   portify(Download)
def test_all():
    """Let's do this"""
    f = filesystem.Walker()
    for c, fname in enumerate(f.walk()):
        con = converter.Converter(fname)

src/p/o/portify-1.0/tests/test_filesystem.py   portify(Download)
def test_no_preexisting():
    """Test that we get the right number of files when no converted files
    are pre-existing"""
    w = filesystem.Walker()
    tools.eq_(TOTAL, len(list(w.walk())))
    shutil.copy("%s/Source/front.jpg" % (cwd,), "%s/Output/flac/front.jpg" % (cwd,))
    sub = c + 2
    tools.eq_(TOTAL - sub, len(list(w.walk())))
 
@tools.with_setup(make_single_output, delete_single_output)
        shutil.copy(source, destfile)
        touch(destfile, (st.st_atime, st.st_mtime))
    tools.eq_(TOTAL, len(list(w.walk())))
 
@tools.with_setup(make_single_output, delete_single_output)
        destfile = '%s/Input/flac/%02d - artist - track title.madeup' % (cwd,n)
        shutil.copy(source, destfile)
    tools.eq_(TOTAL, len(list(w.walk())))
 
 

src/p/o/portify-1.0/tests/test_all.py   portify(Download)
def test_all():
    """Let's do this"""
    f = filesystem.Walker()
    for c, fname in enumerate(f.walk()):
        con = converter.Converter(fname)