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

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/c/o/collective.googlenews-1.0rc3/collective/googlenews/tests/test_sitemap.py   collective.googlenews(Download)
    def test_get_query_constraints(self):
        query = self.view.get_query_constraints()
        self.assertIn('sort_limit', query)
        self.assertEqual(query['sort_limit'], 1000)
        self.assertIn('sort_on', query)
        self.assertEqual(query['sort_on'], 'effective')
        self.assertIn('sort_order', query)
        self.assertEqual(query['sort_order'], 'reverse')
        self.assertIn('effective', query)
        self.assertIn('effective', query)
        effective = query['effective']['range']
        self.assertIn(effective, 'min:max')
 
    def test_get_genres(self):