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