示例#1
0
 def test_without_fields(self):
     path = '/?foo=4&bar=3&baz=2&qux=1'
     request = webob.Request.blank(path)
     self.assertListEqual([], base._fields(request))
示例#2
0
 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)