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.contentpage-1.6.5/ftw/contentpage/tests/test_news_views.py   ftw.contentpage(Download)
from DateTime import DateTime
from ftw.contentpage.browser.baselisting import extend_query_by_date
from ftw.contentpage.testing import FTW_CONTENTPAGE_INTEGRATION_TESTING
from plone.app.testing import TEST_USER_ID
import datetime
    def test_extend_query_by_date(self):
        query = extend_query_by_date({}, '2012/12/01', 'effective')
        self.assertEquals(
            {'effective':
                {'query': (
    def test_query_does_not_lose_informations_if_date_is_incorrect(self):
        query = extend_query_by_date(
            {'Title': 'James'}, 'not a date', 'effective')
        self.assertEquals(query, {'Title': 'James'})