1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

Add nmaprun information to Ndiff output.

Patch by Daniel Miller.
This commit is contained in:
david
2011-04-29 03:56:03 +00:00
parent 01f5e7cf51
commit 79ae90e80f
4 changed files with 65 additions and 3 deletions

View File

@@ -48,6 +48,14 @@ class scan_test(unittest.TestCase):
self.assertEqual(len(host.ports), 6)
self.assertEqual(set(host.extraports.items()), set([("filtered", 95), ("open|filtered", 99)]))
def test_nmaprun(self):
"""Test that nmaprun information is recorded."""
scan = Scan()
scan.load_from_file("test-scans/empty.xml")
self.assertEqual(scan.scanner, u"nmap")
self.assertEqual(scan.version, u"4.90RC2")
self.assertEqual(scan.args, u"nmap -oX empty.xml -p 1-100")
def test_addresses(self):
"""Test that addresses are recorded."""
scan = Scan()