16 lines
292 B
Python
16 lines
292 B
Python
import pscanner
|
|
import pytest
|
|
|
|
|
|
def test_is_port_open():
|
|
pass
|
|
|
|
|
|
def test_is_subnet():
|
|
assert pscanner.is_subnet("192.168.1.0") is False
|
|
assert pscanner.is_subnet("192.168.0/24") is True
|
|
|
|
|
|
def test_hosts_in_subnet():
|
|
assert len(pscanner.hosts_in_subnet("192.168.0.0/29")) == 6
|