Ejemplo n.º 1
0
    def test_synonym_properties(self, mock_json_retriever):
        mock_json_retriever.return_value = [
         {"name": "ADRBRL1", "refs": []},
         {"name": "5-HT1A", "refs": []}
        ]
        target = Target(self.target_json)

        self.assertEqual(target.synonyms(), ["ADRBRL1", "5-HT1A"])
Ejemplo n.º 2
0
    def test_synonym_properties(self, mock_json_retriever):
        mock_json_retriever.return_value = [{
            "name": "ADRBRL1",
            "refs": []
        }, {
            "name": "5-HT1A",
            "refs": []
        }]
        target = Target(self.target_json)

        self.assertEqual(target.synonyms(), ["ADRBRL1", "5-HT1A"])
Ejemplo n.º 3
0
    def test_synonym_properties_when_no_json(self, mock_json_retriever):
        mock_json_retriever.return_value = None
        target = Target(self.target_json)

        self.assertEqual(target.synonyms(), [])
Ejemplo n.º 4
0
    def test_synonym_properties_when_no_json(self, mock_json_retriever):
        mock_json_retriever.return_value = None
        target = Target(self.target_json)

        self.assertEqual(target.synonyms(), [])