def test_replace_agent_one(): m = MRA() m.build_model_from_text('BRAF binds MEK1.') m.replace_agent('BRAF', ['RAF1'], 1) assert (len(m.statements) == 1) assert (len(m.statements[0]) == 1) assert((m.statements[0][0].members[0].name == 'RAF1') or\ (m.statements[0][0].members[1].name == 'RAF1'))
def test_replace_agent_one(): m = MRA() m.build_model_from_text('BRAF binds MEK1.') m.replace_agent('BRAF', ['RAF1'], 1) assert(len(m.statements) == 1) assert(len(m.statements[0]) == 1) assert((m.statements[0][0].members[0].name == 'RAF1') or\ (m.statements[0][0].members[1].name == 'RAF1'))
def test_build_model_from_text(): m = MRA() model = m.build_model_from_text('MEK1 phosphorylates ERK2.') assert (model is not None) assert (len(m.statements) == 1) assert (len(m.statements[0]) == 1) assert (isinstance(m.statements[0][0], indra.statements.Phosphorylation)) assert (m.statements[0][0].enz.name == 'MAP2K1') assert (m.statements[0][0].sub.name == 'MAPK1')
def test_build_model_from_text(): m = MRA() model = m.build_model_from_text('MEK1 phosphorylates ERK2.') assert(model is not None) assert(len(m.statements) == 1) assert(len(m.statements[0]) == 1) assert(isinstance(m.statements[0][0], indra.statements.Phosphorylation)) assert(m.statements[0][0].enz.name == 'MAP2K1') assert(m.statements[0][0].sub.name == 'MAPK1')