def test_complex_one(): a = Agent('MAP2K1') b = Agent('BRAF') st = Complex([a, b]) s = ea._assemble_complex(st) print(s) assert s == 'MAP2K1 binds BRAF.'
def test_complex_more(): a = Agent('MAP2K1') b = Agent('BRAF') c = Agent('RAF1') st = Complex([a, b, c]) s = ea._assemble_complex(st) print(s) assert s == 'MAP2K1 binds BRAF and RAF1.'
def test_complex_one(): a = Agent('MAP2K1') b = Agent('BRAF') st = Complex([a, b]) sb = ea._assemble_complex(st) print(sb.sentence) assert sb.sentence == 'MAP2K1 binds BRAF.' assert _substring_by_coords(sb.sentence, sb.agents[0].coords) == 'MAP2K1' assert _substring_by_coords(sb.sentence, sb.agents[1].coords) == 'BRAF'