Exemple #1
0
 def test_search(self):
     concepts = search('Bradshaw', pos='noun')
     self.assertIsInstance(concepts, list)
     self.assertIsInstance(concepts[0], Concept)
Exemple #2
0
def search_concept(query, pos='noun'):
    try:
        search(query, pos)
    except requests.exceptions.ConnectionError:
        pass
Exemple #3
0
 def test_search(self):
     concepts = search('Bradshaw', pos='noun')
     self.assertIsInstance(concepts, list)
     self.assertIsInstance(concepts[0], Concept)