Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/f/t/ftw.publisher.core-2.4.0/ftw/publisher/core/tests/test_shop_item_adapter.py   ftw.publisher.core(Download)
from zope.component import getAdapter
from zope.component import queryAdapter
from ftw.publisher.core.adapters.shop_items import make_serializable
from ftw.publisher.core.adapters.shop_items import make_persistent
from ftw.publisher.core.adapters.shop_items import serialize_decimals
                 ])
             })
        actual = make_serializable(data)
        expected = {'foo': ['bar', [1, 2, 3, 4, 5]]}
        self.assertEquals(actual, expected)
    def test_make_persistent_make_serializable_is_idempotent(self):
        self.replay()
        test_data = {'foo': ['bar', [1, 2, 3, 4, 5]]}
        persistent_data = make_persistent(test_data)
        resulting_data = make_serializable(persistent_data)