Commits

Anonymous committed 2a24fc8

Added test for UrlHelper.overload_params

  • Participants
  • Parent commits 8467fe6

Comments (0)

Files changed (1)

File tests/test_url_helper.py

         u.del_params()
         self.assertEqual(u.get_full_path(), '/foo/bar')
 
+    def test_overload_param(self):
+        u = UrlHelper('/foo/bar?foo=1')
+        u.overload_params(foo=2)
+        self.assertEqual(u.get_full_path(), '/foo/bar?foo=1&foo=2')
+
     def test_url_helper_instance_as_argument(self):
         u1 = UrlHelper('/foo/bar?foo=1&bar=2')
         u2 = UrlHelper(u1)