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