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

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

src/a/r/archetypes.referencebrowserwidget-2.4.21/src/archetypes/referencebrowserwidget/tests/test_product.py   archetypes.referencebrowserwidget(Download)
from Products.CMFPlone.PloneBatch import Batch
 
from archetypes.referencebrowserwidget.testing import (
    ATRB_SAMPLE_TYPES_FUNCTIONAL,
    ATRB_WITH_DATA_INTEGRATION,
    def test_getaturl(self):
        context = DummyObject('/plone/layer1/layer2')
        request = TestRequest()
        helper = ReferenceBrowserHelperView(context, request)
        self.assertEqual(helper.getAtURL(), '/plone/layer1/layer2')
 
        context = DummyObject('/plone/layer1/with space')
 
        helper = ReferenceBrowserHelperView(
            DummyObject('/plone/foo'),
            TestRequest()
        )