def test_without_fields(self): path = '/?foo=4&bar=3&baz=2&qux=1' request = webob.Request.blank(path) self.assertListEqual([], base._fields(request))
def test_with_fields(self): path = '/?fields=4&foo=3&fields=2&bar=1' request = webob.Request.blank(path) expect_val = ['2', '4'] actual_val = base._fields(request) self.assertItemsEqual(actual_val, expect_val)