1from unittest import TestCase 2 3from lib.parse.nmap import parse_nmap 4 5 6class 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") 9 10