21 lines
471 B
Python
21 lines
471 B
Python
#!/usr/bin/env python3
|
|
|
|
"""MODULE: Provides test cases for app/main.py."""
|
|
|
|
# from app.ip import is_ip_address
|
|
|
|
|
|
# def test_is_ip_address_true() -> None:
|
|
# test_query = "1.2.3.4"
|
|
# assert is_ip_address(test_query)
|
|
|
|
|
|
# def test_is_ip_address_false_ip() -> None:
|
|
# test_query = "256.315.16.23"
|
|
# assert not is_ip_address(test_query)
|
|
|
|
|
|
# def test_is_ip_address_false_fqdn() -> None:
|
|
# test_query = "google.com"
|
|
# assert not is_ip_address(test_query)
|