Ejemplo n.º 1
0
    def test_has_get_params(self):
        uri = "something.com?q=bob&x=sue"
        new_uri = handle_slash(uri, add_slash=True)
        assert new_uri == "something.com/?q=bob&x=sue"

        new_uri = handle_slash(uri)
        assert new_uri == "something.com?q=bob&x=sue"
Ejemplo n.º 2
0
    def test_has_get_params(self):
        uri = "something.com?q=bob&x=sue"
        new_uri = handle_slash(uri, add_slash=True)
        assert new_uri == "something.com/?q=bob&x=sue"

        new_uri = handle_slash(uri)
        assert new_uri == "something.com?q=bob&x=sue"
Ejemplo n.º 3
0
 def has_get_params_ends_in_slash(self):
     uri = "something.com/?q=bob&x=sue"
     new_uri = handle_slash(uri, add_slash=False)
     assert new_uri == "something.com?q=bob&x=sue"
Ejemplo n.º 4
0
 def has_get_params_ends_in_slash(self):
     uri = "something.com/?q=bob&x=sue"
     new_uri = handle_slash(uri, add_slash=False)
     assert new_uri == "something.com?q=bob&x=sue"