示例#1
0
 def test_valid_schema(self):
     client = fecho.Client(MIN_VALID_COOKIE)
     with pytest.raises(fecho.InvalidCookie):
         client.get("https://www.google.com")
示例#2
0
 def test_invalid_schema(self):
     client = fecho.Client(MIN_VALID_COOKIE)
     with pytest.raises(fecho.InvalidURL):
         client.get("www.google.com")
示例#3
0
 def test_invalid_cookie_keys(self):
     with pytest.raises(fecho.InvalidCookie):
         client = fecho.Client("""[{"name":"c_user"}]""")
示例#4
0
 def test_valid_cookie(self):
     client = fecho.Client(MIN_VALID_COOKIE)
示例#5
0
 def test_invalid_cookie_type(self):
     with pytest.raises(fecho.InvalidCookie):
         client = fecho.Client([{}])