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)))
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)))