Commits

Hadrien David  committed 0bcba48

* Added assertion in facebook_prayments_get_item_decorator test

  • Participants
  • Parent commits 084cebf

Comments (0)

Files changed (1)

File pyramid_facebook/tests/unittests/test_pyramid_facebook.py

         wrapper = dec._decorate(wrapped)
 
         # test wrapper call:
-        wrapper(context, request)
+        res = wrapper(context, request)
 
         # assertions:
         dec._validate.assert_called_once_with(wrapped.return_value)
             "content": [dec._validate.return_value],
             "method": "payments_get_items"
             })
+        self.assertEqual(res, m_json.dumps.return_value)
 
 
 class TestPyramidFacebook(unittest.TestCase):