コード例 #1
0
ファイル: test_read_pdb.py プロジェクト: smopart/biopandas
def test_fetch_pdb():
    """Test fetch_pdb"""

    try:
        ppdb = PandasPDB()
        txt = ppdb._fetch_pdb('3eiy')
    except HTTPError:
        pass

    if txt:  # skip if PDB down
        txt[:100] == three_eiy[:100]
        ppdb.fetch_pdb('3eiy')
        assert ppdb.pdb_text == txt
        txt = ppdb._fetch_pdb('3ey')
        err = "We're sorry, but the requested file is not available"
        assert err in txt
コード例 #2
0
def test_fetch_pdb():
    """Test fetch_pdb"""

    try:
        ppdb = PandasPDB()
        txt = ppdb._fetch_pdb('3eiy')
    except HTTPError:
        pass

    if txt: # skip if PDB down
        txt[:100] == three_eiy[:100]
        ppdb.fetch_pdb('3eiy')
        assert ppdb.pdb_text == txt
        txt = ppdb._fetch_pdb('3ey')
        err = "We're sorry, but the requested file is not available"
        assert err in txt
コード例 #3
0
def test_fetch_pdb():
    """Test fetch_pdb"""

    try:
        ppdb = PandasPDB()
        txt = ppdb._fetch_pdb('3eiy')
    except HTTPError:
        pass

    if txt:  # skip if PDB down
        txt[:100] == three_eiy[:100]
        ppdb.fetch_pdb('3eiy')
        assert ppdb.pdb_text == txt
コード例 #4
0
ファイル: test_read_pdb.py プロジェクト: rasbt/biopandas
def test_fetch_pdb():
    """Test fetch_pdb"""

    try:
        ppdb = PandasPDB()
        txt = ppdb._fetch_pdb('3eiy')
    except HTTPError:
        pass

    if txt:  # skip if PDB down
        txt[:100] == three_eiy[:100]
        ppdb.fetch_pdb('3eiy')
        assert ppdb.pdb_text == txt