Permalink
Browse files

Because having 42 tests is better than 41.

  • Loading branch information...
davbo committed Oct 12, 2012
1 parent 4279492 commit 536af2e90f3e3b837a71741f45b6bae96ddd525e
Showing with 12 additions and 0 deletions.
  1. +12 −0 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'])

0 comments on commit 536af2e

Please sign in to comment.