def test_make_url_args_dict(self):
     params = {'foo': {'bar': 'baz', 'abc': 'def'}}
     ret = p.make_url_args(params)
     pass1 = 'foo%5Bbar%5D=baz' in ret
     pass2 = 'foo%5Babc%5D=def' in ret
     self.assertTrue(pass1)
     self.assertTrue(pass2)
 def test_make_url_args_dict(self):
     params = {'foo': {'bar': 'baz',
                       'abc': 'def'}}
     ret = p.make_url_args(params)
     pass1 = 'foo%5Bbar%5D=baz' in ret
     pass2 = 'foo%5Babc%5D=def' in ret
     self.assertTrue(pass1)
     self.assertTrue(pass2)
 def test_make_url_args_bool_bare_value_non_str(self):
     params = {'foo': 2.0}
     ret = p.make_url_args(params)
     self.assertEquals(ret, 'foo=2.0')
 def test_make_url_args_bool_bare_value_str(self):
     params = {'foo': 'bar'}
     ret = p.make_url_args(params)
     self.assertEquals(ret, 'foo=bar')
 def test_make_url_args_bool_none(self):
     params = {'foo': None}
     ret = p.make_url_args(params)
     self.assertEquals(ret, '')
 def test_make_url_args_bool_false(self):
     params = {'foo': False}
     ret = p.make_url_args(params)
     self.assertEquals(ret, 'foo=false')
 def test_make_url_args_bool_true(self):
     params = {'foo': True}
     ret = p.make_url_args(params)
     self.assertEquals(ret, 'foo=true')
 def test_make_url_args_tuple(self):
     params = {'foo': (1, 'foo')}
     ret = p.make_url_args(params)
     self.assertEquals(ret, 'foo=1&foo=foo')
 def test_make_url_args_list(self):
     params = {'foo': [1, 'foo']}
     ret = p.make_url_args(params)
     self.assertEquals(ret, 'foo=1&foo=foo')
 def test_make_url_args_bool_bare_value_non_str(self):
     params = {'foo': 2.0}
     ret = p.make_url_args(params)
     self.assertEquals(ret, 'foo=2.0')
 def test_make_url_args_bool_bare_value_str(self):
     params = {'foo': 'bar'}
     ret = p.make_url_args(params)
     self.assertEquals(ret, 'foo=bar')
 def test_make_url_args_bool_none(self):
     params = {'foo': None}
     ret = p.make_url_args(params)
     self.assertEquals(ret, '')
 def test_make_url_args_bool_false(self):
     params = {'foo': False}
     ret = p.make_url_args(params)
     self.assertEquals(ret, 'foo=false')
 def test_make_url_args_bool_true(self):
     params = {'foo': True}
     ret = p.make_url_args(params)
     self.assertEquals(ret, 'foo=true')
 def test_make_url_args_tuple(self):
     params = {'foo': (1, 'foo')}
     ret = p.make_url_args(params)
     self.assertEquals(ret, 'foo=1&foo=foo')
 def test_make_url_args_list(self):
     params = {'foo': [1, 'foo']}
     ret = p.make_url_args(params)
     self.assertEquals(ret, 'foo=1&foo=foo')