chore: attribute to ZSecurity / Linuxhackingid
This commit is contained in:
@@ -67,6 +67,22 @@ class UrlTargetTest(unittest.TestCase):
|
||||
self.assertEqual(ns.port, 7000)
|
||||
|
||||
|
||||
class BannerTest(unittest.TestCase):
|
||||
def test_banner_carries_author_and_org(self):
|
||||
import contextlib
|
||||
import io
|
||||
|
||||
import poc
|
||||
|
||||
buf = io.StringIO()
|
||||
with contextlib.redirect_stdout(buf):
|
||||
cli.banner()
|
||||
out = buf.getvalue()
|
||||
self.assertIn(poc.__author__, out)
|
||||
self.assertIn(poc.__org__, out)
|
||||
self.assertIn(poc.__version__, out)
|
||||
|
||||
|
||||
class ExecWrapperTest(unittest.TestCase):
|
||||
def test_wrapper_redirects_output_to_mount(self):
|
||||
wrapped = cli.exec_wrapper("id")
|
||||
|
||||
Reference in New Issue
Block a user