Ejemplo n.º 1
0
 def test_get_results_by_multiple_ids(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_places_by_identifiers(['123', '456'])
             mock_searcher.get_by_ids.assert_called_with(['123', '456'])