Ejemplo n.º 1
0
 def testNmap4(self):
     option_parser = UmitOptionParser(["--nmap", "-T4", "-P0", "192.168.0.*"])
     # Shoudl return False, because no nmap arg was defined
     self.assert_(
         option_parser.get_nmap() == ["-T4", "-P0", "192.168.0.*"],
         "Failed to get nmap option (--nmap -T4 -P0 192.168.0.*)",
     )
 def testNmap4(self):
     option_parser = UmitOptionParser(
         ["--nmap", "-T4", "-P0", "192.168.0.*"])
     # Shoudl return False, because no nmap arg was defined
     self.assert_(option_parser.get_nmap() == ["-T4", "-P0", "192.168.0.*"],
                  "Failed to get nmap option (--nmap -T4 -P0 192.168.0.*)")
Ejemplo n.º 3
0
 def testNmap3(self):
     option_parser = UmitOptionParser(["--nmap"])
     # Shoudl return False, because no nmap arg was defined
     self.assert_(not option_parser.get_nmap(), "Failed to get nmap option (--nmap)")
 def testNmap3(self):
     option_parser = UmitOptionParser(["--nmap"])
     # Shoudl return False, because no nmap arg was defined
     self.assert_(not option_parser.get_nmap(),
                  "Failed to get nmap option (--nmap)")