Closed yi-liang closed 8 years ago
The test is correct as it is.
The goal of the Nmap_WAN test is to verify there are no open ports on the WAN. For security, there should be no open ports on the WAN of a consumer router. So len(open_ports)
should be equal to 0. If that happens, the test passes.
boardfarm/tests/nmap.py in test Nmap_WAN, there is
assert len(open_ports) == 0
should it beassert len(open_ports) != 0
? because it would find some open ports then test failed