| Conditions | 1 |
| Total Lines | 10 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import pytest |
||
| 35 | def test_cocaine_hcl(self): |
||
| 36 | api = ChemblApi.wrap(Chembl) |
||
| 37 | df, triples = Searcher(IndicationSearch(api, min_phase=3)).search_for(["CHEMBL529437"]) |
||
| 38 | assert len(df) == 1 |
||
| 39 | assert len(triples) == 1 |
||
| 40 | assert triples[0].compound_name.lower() == "cocaine" |
||
| 41 | assert triples[0].compound_id == "CHEMBL370805" |
||
| 42 | assert triples[0].object_id == "D000758" |
||
| 43 | assert triples[0].object_name == "Anesthesia" |
||
| 44 | assert triples[0].predicate == "phase-4 indication" |
||
| 45 | |||
| 49 |