SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
tests: Add test/unit/test_sf.py stub
Brendan Colesb6ff1130634a
diff --git a/test/unit/test_sf.py b/test/unit/test_sf.pynew file mode 100644index 00000000..dcc59dac--- /dev/null+++ b/test/unit/test_sf.py@@ -0,0 +1,29 @@+# test_sf.py+import unittest+import io+import sys+import subprocess++class TestSf(unittest.TestCase):+ """+ Test TestSf+ """++ def execute(self, command):+ proc = subprocess.Popen(+ command,+ stdout = subprocess.PIPE,+ stderr = subprocess.PIPE,+ )+ out,err = proc.communicate()+ return out, err, proc.returncode++ def test_help_arg_should_print_help_and_exit(self):+ out, err, code = self.execute([sys.executable, "sf.py", "-h"])+ self.assertIn(b"show this help message and exit", out)+ self.assertEqual(b"", err)+ self.assertEqual(0, code)++if __name__ == '__main__':+ unittest.main()+