コード例 #1
0
 def test_calls_index(self, m_index):
     from pyramid_caching.ext.royal import CachedCollectionView
     ccv = CachedCollectionView(None, None)
     response = ccv.cached_index()
     m_index.assert_called_once_with()
     self.assertEqual(m_index.return_value, response)