Exemple #1
0
def test_generate_compnd_continuation_count():
    assert minimal(
        generate_compnd(continuation_number=5)) == "COMPND  5  MOL_ID: 0;"
Exemple #2
0
def test_generate_compnd_ec():
    assert (minimal(
        generate_compnd(),
        lambda x: "EC:" in x) == "COMPND     EC: NUMBER NOT ASSIGNED;")
Exemple #3
0
def test_generate_compnd_ec_assigned():
    assert (minimal(generate_compnd(),
                    lambda x: "EC:" in x and x.count(".") == 3) ==
            "COMPND     EC: 0.0.0.0;")
Exemple #4
0
def test_generate_compnd_engineered_yes():
    assert (minimal(generate_compnd(),
                    lambda x: "ENGINEERED" in x and "YES" in x) ==
            "COMPND     ENGINEERED: YES;")
Exemple #5
0
def test_generate_compnd_engineered_no():
    assert (minimal(generate_compnd(),
                    lambda x: "ENGINEERED" in x and "NO" in x) ==
            "COMPND     ENGINEERED: NO;")
Exemple #6
0
def test_generate_compnd_synonym():
    assert (minimal(generate_compnd(),
                    lambda x: "SYNONYM" in x) == "COMPND     SYNONYM: 0;")
Exemple #7
0
def test_generate_compnd_fragment():
    assert (minimal(generate_compnd(),
                    lambda x: "FRAGMENT" in x) == "COMPND     FRAGMENT: 0;")
Exemple #8
0
def test_generate_compnd_chain():
    assert minimal(generate_compnd(),
                   lambda x: "CHAIN" in x) == "COMPND     CHAIN: A;"
Exemple #9
0
def test_generate_compnd_molecule():
    assert (minimal(generate_compnd(),
                    lambda x: "MOLECULE" in x) == "COMPND     MOLECULE: 0;")
Exemple #10
0
def test_generate_compnd_molid():
    assert (minimal(generate_compnd(),
                    lambda x: "MOL_ID" in x) == "COMPND     MOL_ID: 0;")