Esempio n. 1
0
def test_parse_btype_unexpected():
    """
    Tests that the btype value is correctly parsed from the pdb file remark
    records.
    """
    records = {"REMARK": ["  3   B VALUE TYPE : SOMETHINGELSE", ]}
    parse_btype(records)
Esempio n. 2
0
def test_parse_btype_unverified_trailing_whitespace():
    """
    Tests that the btype value is correctly parsed from the pdb file remark
    records.

    This example is taken from e.g. 2x3w.
    """
    records = {"REMARK": ["  3   B VALUE TYPE : UNVERIFIED                ", ]}
    btype = parse_btype(records)
    eq_(btype, "unverified")
Esempio n. 3
0
def test_parse_btype_residual_trailing_whitespace():
    """
    Tests that the btype value is correctly parsed from the pdb file remark
    records.

    This example is taken from e.g. 1ean.
    """
    records = {"REMARK": ["  3   B VALUE TYPE : LIKELY RESIDUAL           ", ]}
    btype = parse_btype(records)
    eq_(btype, "residual")
Esempio n. 4
0
def test_parse_btype_residual():
    """
    Tests that the btype value is correctly parsed from the pdb file remark
    records.

    This example is taken from e.g.
    1zup, 1zuz, 1zv4, 1zv7, 1zv8, 1zva, 1zvb, 1zvn, 1zvp, 1zvq, 1zvt, 1zvu,
    2zvk, 2zvl, 2zvm, 1zw5, 1zwz, 2zwn, 1zx1, 1zx2, 1zx5, 1zx6, 1zx8, 1zxk,
    1zxt, 2zxe, 2zxj, 2zxt, 1zyb, 1zzi, 1zzj, 2zz1, 2zz2, 2zz5, 2zz7, 2zz8,
    etc. etc.
    """
    records = {"REMARK": ["  3   B VALUE TYPE : LIKELY RESIDUAL", ]}
    btype = parse_btype(records)
    eq_(btype, "residual")
Esempio n. 5
0
def test_parse_btype_unverified():
    """
    Tests that the btype value is correctly parsed from the pdb file remark
    records.

    This example is taken from e.g.
    2a2t, 3b4v, 3b9k, 3be8, 2bnx, 2bwg, 2byc, 2byo, 2byp, 2byr, 2c1j, 2c2g,
    2c2n, 2c43, 2c8t, 2c95, 2cdg, 2cfo, 2cfz, 2ch6, 2ci9, 2ck3, 2ckd, 2ckq,
    2clq, 3eit, 3ekt, 3ekv, 3eky, 3ffl, 3gg8, 3hvg, 2io4, 3io2, 2ixp, 2iyg,
    2izs, 2izt, 2j1n, 2j24, 2j7x, 2j8x, 2jc6, 2jdi, 2je0, 2jf6, 2jfd, 2jfk,
    2jg3, 2jgs, 2jhp, 2jjy, 2oyu, 2p28, 2uv0, 1uwx, 2uz2, 2v0t, 2v24, 2v3v,
    2v79, 2v7l, 2v8d, 2v8z, 2v9s, 2va0, 2vag, 2vc2, 2vdk, 2ve7, 2vef, 2vfc,
    2vg3, 2vgf, 2vgi, 2vka, 2vlf, 2vnu, 2vob, 2vsz, 2vu0, 2vu1, 2vv8, 2vvc,
    2vx2, 2vxk, 2vze, 2w0d, 2w3d, 2w6t, 2w75, 2w77, 1w89, 2w8f, 2wnc, 2wvo,
    2x23, 2x3w
    """
    records = {"REMARK": ["  3   B VALUE TYPE : UNVERIFIED", ]}
    btype = parse_btype(records)
    eq_(btype, "unverified")
Esempio n. 6
0
def test_parse_btype_unverified_trailing_whitespace_none():
    """Trivially test that the btype value is None if not present."""
    records = {"REMARK": ["  3               ", ]}
    btype = parse_btype(records)
    eq_(btype, None)