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)
def test_molecular_quantity_badentity(): s = '(:type "xyz" :entity (:description "xyz"))' lst = KQMLList.from_string(s) mqr = tra_module.get_molecular_quantity_ref(lst)
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)
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