File: test_click_common.py

package info (click to toggle)
python-miio 0.5.12-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,888 kB
  • sloc: python: 23,425; makefile: 9
file content (9 lines) | stat: -rw-r--r-- 222 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
from miio.click_common import validate_ip, validate_token


def test_validate_token_empty():
    assert not validate_token(None, None, None)


def test_validate_ip_empty():
    assert validate_ip(None, None, None) is None