| 1 |
from unittest import TestCase |
| 2 |
|
| 3 |
from lib.parse.nmap import parse_nmap |
| 4 |
|
| 5 |
|
| 6 |
class TestNmapParser(TestCase): |
| 7 |
def test_parse_nmap(self): |
| 8 |
self.assertEqual(parse_nmap("./tests/static/nmap.xml"), ["scanme.nmap.org:80"], "Nmap parser gives unexpected result") |