Пример #1
0
def test_generate_compnd_continuation_count():
    assert minimal(
        generate_compnd(continuation_number=5)) == "COMPND  5  MOL_ID: 0;"
Пример #2
0
def test_generate_compnd_ec():
    assert (minimal(
        generate_compnd(),
        lambda x: "EC:" in x) == "COMPND     EC: NUMBER NOT ASSIGNED;")
Пример #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;")
Пример #4
0
def test_generate_compnd_engineered_yes():
    assert (minimal(generate_compnd(),
                    lambda x: "ENGINEERED" in x and "YES" in x) ==
            "COMPND     ENGINEERED: YES;")
Пример #5
0
def test_generate_compnd_engineered_no():
    assert (minimal(generate_compnd(),
                    lambda x: "ENGINEERED" in x and "NO" in x) ==
            "COMPND     ENGINEERED: NO;")
Пример #6
0
def test_generate_compnd_synonym():
    assert (minimal(generate_compnd(),
                    lambda x: "SYNONYM" in x) == "COMPND     SYNONYM: 0;")
Пример #7
0
def test_generate_compnd_fragment():
    assert (minimal(generate_compnd(),
                    lambda x: "FRAGMENT" in x) == "COMPND     FRAGMENT: 0;")
Пример #8
0
def test_generate_compnd_chain():
    assert minimal(generate_compnd(),
                   lambda x: "CHAIN" in x) == "COMPND     CHAIN: A;"
Пример #9
0
def test_generate_compnd_molecule():
    assert (minimal(generate_compnd(),
                    lambda x: "MOLECULE" in x) == "COMPND     MOLECULE: 0;")
Пример #10
0
def test_generate_compnd_molid():
    assert (minimal(generate_compnd(),
                    lambda x: "MOL_ID" in x) == "COMPND     MOL_ID: 0;")