Ejemplo n.º 1
0
 def test_get_results_by_id(self):
     with mock.patch('moxie.places.services.searcher') as mock_searcher:
         with mock.patch('moxie.places.services.doc_to_poi') as mock_doc_to_poi:
             poi_service = POIService()
             mock_doc_to_poi.return_value = None
             poi_service.get_place_by_identifier('123')
             mock_searcher.get_by_ids.assert_called_with(['123'])