コード例 #1
0
ファイル: tra_test.py プロジェクト: dianakolusheva/bioagents
def test_molecular_quantity_ref2():
    s = '(:type "initial" :entity (:description %s))' % clj_complex
    lst = KQMLList.from_string(s)
    mqr = tra_module.get_molecular_quantity_ref(lst)
    assert mqr.quant_type == 'initial'
    assert len(mqr.entity.bound_conditions) == 1, \
        len(mqr.entity.bound_conditions)
コード例 #2
0
def test_molecular_quantity_badentity():
    s = '(:type "xyz" :entity (:description "xyz"))'
    lst = KQMLList.from_string(s)
    mqr = tra_module.get_molecular_quantity_ref(lst)
コード例 #3
0
def test_molecular_quantity_badtype():
    s = '(:type "xyz" :entity (:description "%s"))' % ekb_complex
    lst = KQMLList.from_string(s)
    mqr = tra_module.get_molecular_quantity_ref(lst)
コード例 #4
0
def test_molecular_quantity_ref():
    s = '(:type "total" :entity (:description "%s"))' % ekb_complex
    lst = KQMLList.from_string(s)
    mqr = tra_module.get_molecular_quantity_ref(lst)
    assert mqr.quant_type == 'total'
    assert len(mqr.entity.bound_conditions) == 1