File: test_connection.py

package info (click to toggle)
python-asusrouter 1.21.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,856 kB
  • sloc: python: 20,497; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 371 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""Test AsusRouter connection tools."""

import aiohttp
import pytest

from asusrouter.tools.connection import get_cookie_jar


@pytest.mark.asyncio
async def test_get_cookie_jar() -> None:
    """Test get_cookie_jar method."""

    jar = get_cookie_jar()
    assert isinstance(jar, aiohttp.CookieJar)
    assert jar._unsafe is True
    assert jar._quote_cookie is False