Commits

Branko Vukelic committed 894ec63

Added test for silent failure of deletion

  • Participants
  • Parent commits 108dcb9

Comments (0)

Files changed (1)

File tests/test_url_helper.py

         u.del_params('foo', 'bar')
         self.assertEqual(u.get_full_path(), '/foo/bar')
 
+    def test_delete_fails_silently(self):
+        u = UrlHelper('/foo/bar?foo=1&bar=2')
+        u.del_params('foo', 'baz')  # baz doesn't exist
+        self.assertEqual(u.get_full_path(), '/foo/bar?bar=2')
+