#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""Tests for `aionest` package."""
import pytest

from aionest import NestApi


def test_init():
    """Test init."""
    nest_api = NestApi(product_id="product-id")
    assert nest_api is not None

    nest_api = NestApi("product-id", access_token="access-token")
    assert nest_api is not None

86e4bf61b2e23cdf643f8692d9aad7cabfe8a22d
<mask token>

<mask token>


def test_init():
    """Test init."""
    nest_api = NestApi(product_id='product-id')
    assert nest_api is not None
    nest_api = NestApi('product-id', access_token='access-token')
    assert nest_api is not None

<mask token>
import pytest
from aionest import NestApi


def test_init():
    """Test init."""
    nest_api = NestApi(product_id='product-id')
    assert nest_api is not None
    nest_api = NestApi('product-id', access_token='access-token')
    assert nest_api is not None

#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""Tests for `aionest` package."""
import pytest

from aionest import NestApi


def test_init():
    """Test init."""
    nest_api = NestApi(product_id="product-id")
    assert nest_api is not None

    nest_api = NestApi("product-id", access_token="access-token")
    assert nest_api is not None
