File: test_exception.py

package info (click to toggle)
zigpy-deconz 0.25.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 360 kB
  • sloc: python: 3,911; makefile: 5
file content (15 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Test exceptions."""

from unittest import mock

import zigpy_deconz.exception


def test_command_error():
    ex = zigpy_deconz.exception.CommandError(
        mock.sentinel.message,
        status=mock.sentinel.status,
        command=mock.sentinel.command,
    )
    assert ex.status is mock.sentinel.status
    assert ex.command is mock.sentinel.command