Ejemplo n.º 1
0
def check_dir_download(self):
    found = pygrData.dir(download=True)
    found.sort()
    found2 = pygrData.dir('', download=True)
    found2.sort()
    assert len(found) == 0
    assert found == found2
Ejemplo n.º 2
0
def check_dir_re(self):
    expected=['Bio.Annotation.annoDB', 'Bio.Annotation.map',
                'Bio.Seq.Swissprot.sp42', 'Bio.Seq.frag', 'Bio.Seq.spmap']
    expected.sort()
    found = pygrData.dir('^Bio', 'r')
    found.sort()
    assert found == expected

    expected = ['Bio.Seq.Swissprot.sp42', 'Bio.Seq.spmap']
    expected.sort()
    found = pygrData.dir('^Bio\..+\.sp', 'r')
    found.sort()
    assert found == expected
Ejemplo n.º 3
0
def check_dir_noargs(self):
    found = pygrData.dir()
    found.sort()
    found2 = pygrData.dir('')
    found2.sort()
    assert found == found2