Skip to content

Commit

Permalink
Merge branch 'release/3.0.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
franccesco committed Jul 12, 2018
2 parents e7d00d7 + c3eea44 commit 4a17a79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions gsan/tests/test_gsan.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import json
import unittest
from os import remove
from gsan.banner import banner
from gsan.get_san import get_san
from gsan.crt_sh import search_crt
from gsan.report import output, report_single, collect_report, nmap_output
Expand Down Expand Up @@ -99,13 +100,13 @@ def test_subdomain_report_json(self):
self.assertTrue(json.loads(json_data))

def test_report_no_sans_found(self):
"""Test if 'no sounds found' message its displayed correctly."""
"""Test if 'no sans found' message its displayed correctly."""
captured_text = io.StringIO()
sys.stdout = captured_text
report_single([], '', 'text')
sys.stdout = sys.__stdout__
err_message = "\x1b[41m\x1b[37mNo SAN's were found.\x1b[0m\n\n"
self.assertEqual(captured_text.getvalue(), err_message)
message = banner + "\n\x1b[41m\x1b[37mNo SAN's were found.\x1b[0m\n\n"
self.assertEqual(captured_text.getvalue(), message)

def test_collect_report(self):
"""Test nmap report method collect_report()."""
Expand Down
2 changes: 1 addition & 1 deletion gsan/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '3.0.5'
version = '3.0.6'

0 comments on commit 4a17a79

Please sign in to comment.