예제 #1
0
파일: test_utils.py 프로젝트: CashStar/nap
    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"
예제 #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"
예제 #3
0
파일: test_utils.py 프로젝트: CashStar/nap
 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"
예제 #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"