Exemplo n.º 1
0
 def test_limit_0(self):
     result = utils.common_filters(limit=0)
     self.assertEqual([], result)
Exemplo n.º 2
0
 def test_other(self):
     for key in ('marker', 'sort_key', 'sort_dir'):
         result = utils.common_filters(**{key: 'test'})
         self.assertEqual(['%s=test' % key], result)
Exemplo n.º 3
0
 def test_limit(self):
     result = utils.common_filters(limit=42)
     self.assertEqual(['limit=42'], result)