Conditions | 1 |
Total Lines | 9 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import pytest |
||
32 | def test_cocaine_hcl(self): |
||
33 | df, triples = Commands.search_for(What.trial, ["CHEMBL529437"], None) |
||
34 | assert len(df) == 1 |
||
35 | assert len(triples) == 1 |
||
36 | assert triples[0].compound_name.lower() == "cocaine" |
||
37 | assert triples[0].compound_id == "CHEMBL370805" |
||
38 | assert triples[0].object_id == "D000758" |
||
39 | assert triples[0].object_name == "Anesthesia" |
||
40 | assert triples[0].predicate == "phase-4 indication" |
||
41 | |||
45 |