示例#1
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
示例#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
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