<s> from bandit . core import blacklisting <EOL> import testtools <EOL> class BlacklistingTests ( testtools . TestCase ) : <EOL> def test_report_issue ( self ) : <EOL> data = { '<STR_LIT>' : '<STR_LIT>' , '<STR_LIT:message>' : '<STR_LIT>' , '<STR_LIT:id>' : '<STR_LIT>' } <EOL> issue = blacklisting . report_issue ( data , '<STR_LIT:name>' ) <EOL> issue_dict = issue . as_dict ( with_code = False ) <EOL> self . assertIsInstance ( issue_dict , dict ) <EOL> self . assertEqual ( '<STR_LIT>' , issue_dict [ '<STR_LIT>' ] ) <EOL> self . assertEqual ( '<STR_LIT>' , issue_dict [ '<STR_LIT>' ] ) <EOL> self . assertEqual ( '<STR_LIT>' , issue_dict [ '<STR_LIT>' ] ) <EOL> self . assertEqual ( '<STR_LIT>' , issue_dict [ '<STR_LIT>' ] ) <EOL> def test_report_issue_defaults ( self ) : <EOL> data = { '<STR_LIT:message>' : '<STR_LIT>' } <EOL> issue = blacklisting . report_issue ( data , '<STR_LIT:name>' ) <EOL> issue_dict = issue . as_dict ( with_code = False ) <EOL> self . assertIsInstance ( issue_dict , dict ) <EOL> self . assertEqual ( '<STR_LIT>' , issue_dict [ '<STR_LIT>' ] ) <EOL> self . assertEqual ( '<STR_LIT>' , issue_dict [ '<STR_LIT>' ] ) <EOL> self . assertEqual ( '<STR_LIT>' , issue_dict [ '<STR_LIT>' ] ) <EOL> self . assertEqual ( '<STR_LIT>' , issue_dict [ '<STR_LIT>' ] ) </s>
