Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /webdriver/classic/new_session/create.py - WPT Dashboard Interop Dashboard
# META: timeout=long
from tests.support.asserts import assert_success
def test_valid_content_type(new_session, configuration):
headers = {"content-type": "application/json"}
response, _ = new_session(
{"capabilities": {"alwaysMatch": dict(configuration["capabilities"])}},
headers=headers,
)
assert_success(response)