Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Because having 42 tests is better than 41.

  • Loading branch information...
commit 536af2e90f3e3b837a71741f45b6bae96ddd525e 1 parent 4279492
@davbo davbo authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 moxie/tests/test_places_services.py
View
12 moxie/tests/test_places_services.py
@@ -0,0 +1,12 @@
+import unittest, mock
+
+from moxie.places.services import POIService
+
+
+class POIServiceTestCase(unittest.TestCase):
+
+ def test_get_results_by_id(self):
+ with mock.patch('moxie.places.services.searcher') as mock_searcher:
+ poi_service = POIService()
+ results = poi_service.get_place_by_identifier('123')
+ mock_searcher.get_by_ids.assert_called_with(['123'])
Please sign in to comment.
Something went wrong with that request. Please try again.