コード例 #1
0
 def test_box_cache_key_is_prefixed_by_objects_key(self):
     box = Box(self.publishable, 'box_type', [])
     # initialize the box's .params attribute
     box.prepare({})
     tools.assert_true(box.get_cache_key().startswith(
         _get_key(KEY_PREFIX,
                  self.publishable.content_type,
                  pk=self.publishable.pk)))
コード例 #2
0
ファイル: test_boxes.py プロジェクト: 3108as/ella
 def test_box_cache_key_is_prefixed_by_objects_key(self):
     box = Box(self.publishable, 'box_type', [])
     # initialize the box's .params attribute
     box.prepare({})
     tools.assert_true(box.get_cache_key().startswith(_get_key(KEY_PREFIX, self.publishable.content_type, pk=self.publishable.pk)))