Support recursive tail call optimization for polymorphic calls
[WebKit-https.git] / WebDriverTests / imported / w3c / webdriver / tests / status.py
1 import pytest
2 import json
3
4
5 def test_get_status_no_session(http):
6     with http.get("/status") as response:
7         # GET /status should never return an error
8         assert response.status == 200
9
10         # parse JSON response and unwrap 'value' property
11         parsed_obj = json.loads(response.read().decode('utf-8'))
12         value = parsed_obj["value"]
13
14         # Let body be a new JSON Object with the following properties:
15         # "ready"
16         #       The remote end's readiness state.
17         assert value["ready"] in [True, False]
18         # "message"
19         #       An implementation-defined string explaining the remote end's
20         #       readiness state.
21         assert isinstance(value["message"], basestring)