コード例 #1
0
 def test_calls_not_allowed(self, m_not_allowed):
     from pyramid_caching.ext.royal import CachedCollectionView
     context = mock.Mock()
     ccv = CachedCollectionView(context, None)
     response = ccv.cached_not_allowed()
     m_not_allowed.assert_called_once_with(ccv.context, ccv.request)
     self.assertEqual(m_not_allowed.return_value, response)