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"
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"