Commits

Hadrien David  committed 1cd822a

* More readable test

  • Participants
  • Parent commits 7c3eb45

Comments (0)

Files changed (1)

File pyramid_facebook/tests/unittests/test_pyramid_facebook.py

 
         dec = facebook_canvas(**{})
 
-        config = {'permission': ViewCanvas, 'route_name': 'facebook_canvas'}
-        for k, v in config.iteritems():
-            self.assertEqual(v, getattr(dec, k))
-
+        self.assertEqual(ViewCanvas, dec.permission)
+        self.assertEqual('facebook_canvas', dec.route_name)
 
 
 class Test_facebook_payments_get_items(unittest.TestCase):