예제 #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([{}])