SYMBOL INDEX (709 symbols across 107 files) FILE: bandit/blacklists/calls.py function gen_blacklist (line 346) | def gen_blacklist(): FILE: bandit/blacklists/imports.py function gen_blacklist (line 234) | def gen_blacklist(): FILE: bandit/blacklists/utils.py function build_conf_dict (line 8) | def build_conf_dict(name, bid, cwe, qualnames, message, level="MEDIUM"): FILE: bandit/cli/baseline.py function main (line 39) | def main(): function baseline_setup (line 135) | def baseline_setup(): function init_logger (line 146) | def init_logger(): function initialize (line 159) | def initialize(): FILE: bandit/cli/config_generator.py function init_logger (line 50) | def init_logger(): function parse_args (line 62) | def parse_args(): function get_config_settings (line 124) | def get_config_settings(): function main (line 142) | def main(): FILE: bandit/cli/main.py function _init_logger (line 23) | def _init_logger(log_level=logging.INFO, log_format=None): function _get_options_from_ini (line 46) | def _get_options_from_ini(ini_path, target): function _init_extensions (line 78) | def _init_extensions(): function _log_option_source (line 84) | def _log_option_source(default_val, arg_val, ini_val, option_name): function _running_under_virtualenv (line 104) | def _running_under_virtualenv(): function _get_profile (line 111) | def _get_profile(config, profile_name, config_path): function _log_info (line 125) | def _log_info(args, profile): function main (line 134) | def main(): FILE: bandit/core/blacklisting.py function report_issue (line 10) | def report_issue(check, name): function blacklist (line 21) | def blacklist(context, config): FILE: bandit/core/config.py class BanditConfig (line 25) | class BanditConfig: method __init__ (line 26) | def __init__(self, config_file=None): method get_option (line 84) | def get_option(self, option_string): method get_setting (line 103) | def get_setting(self, setting_name): method config (line 110) | def config(self): method _init_settings (line 117) | def _init_settings(self): method _init_plugin_name_pattern (line 129) | def _init_plugin_name_pattern(self): method convert_legacy_config (line 136) | def convert_legacy_config(self): method convert_names_to_ids (line 146) | def convert_names_to_ids(self): method convert_legacy_blacklist_data (line 166) | def convert_legacy_blacklist_data(self): method convert_legacy_blacklist_tests (line 197) | def convert_legacy_blacklist_tests(profiles, bad_imports, bad_calls): method validate (line 235) | def validate(self, path): FILE: bandit/core/context.py class Context (line 10) | class Context: method __init__ (line 11) | def __init__(self, context_object=None): method __repr__ (line 22) | def __repr__(self): method call_args (line 40) | def call_args(self): method call_args_count (line 55) | def call_args_count(self): method call_function_name (line 66) | def call_function_name(self): method call_function_name_qual (line 74) | def call_function_name_qual(self): method call_keywords (line 82) | def call_keywords(self): method node (line 101) | def node(self): method string_val (line 109) | def string_val(self): method bytes_val (line 117) | def bytes_val(self): method string_val_as_escaped_bytes (line 125) | def string_val_as_escaped_bytes(self): method statement (line 148) | def statement(self): method function_def_defaults_qual (line 156) | def function_def_defaults_qual(self): method _get_literal_value (line 175) | def _get_literal_value(self, literal): method get_call_arg_value (line 218) | def get_call_arg_value(self, argument_name): method check_call_arg_value (line 227) | def check_call_arg_value(self, argument_name, argument_values=None): method get_lineno_for_call_arg (line 250) | def get_lineno_for_call_arg(self, argument_name): method get_call_arg_at_position (line 263) | def get_call_arg_at_position(self, position_num): method is_module_being_imported (line 276) | def is_module_being_imported(self, module): method is_module_imported_exact (line 284) | def is_module_imported_exact(self, module): method is_module_imported_like (line 292) | def is_module_imported_like(self, module): method filename (line 307) | def filename(self): method file_data (line 311) | def file_data(self): method import_aliases (line 315) | def import_aliases(self): FILE: bandit/core/docs_utils.py function get_url (line 8) | def get_url(bid): FILE: bandit/core/extension_loader.py class Manager (line 13) | class Manager: method __init__ (line 17) | def __init__( method load_formatters (line 28) | def load_formatters(self, formatters_namespace): method load_plugins (line 37) | def load_plugins(self, plugins_namespace): method get_test_id (line 59) | def get_test_id(self, test_name): method load_blacklists (line 66) | def load_blacklists(self, blacklist_namespace): method validate_profile (line 86) | def validate_profile(self, profile): method check_id (line 102) | def check_id(self, test): FILE: bandit/core/issue.py class Cwe (line 10) | class Cwe: method __init__ (line 38) | def __init__(self, id=NOTSET): method link (line 41) | def link(self): method __str__ (line 47) | def __str__(self): method as_dict (line 53) | def as_dict(self): method as_jsons (line 60) | def as_jsons(self): method from_dict (line 63) | def from_dict(self, data): method __eq__ (line 69) | def __eq__(self, other): method __ne__ (line 72) | def __ne__(self, other): method __hash__ (line 75) | def __hash__(self): class Issue (line 79) | class Issue: method __init__ (line 80) | def __init__( method __str__ (line 108) | def __str__(self): method __eq__ (line 124) | def __eq__(self, other): method __ne__ (line 141) | def __ne__(self, other): method __hash__ (line 144) | def __hash__(self): method filter (line 147) | def filter(self, severity, confidence): method get_code (line 169) | def get_code(self, max_lines=3, tabbed=False): method as_dict (line 201) | def as_dict(self, with_code=True, max_lines=3): method from_dict (line 221) | def from_dict(self, data, with_code=True): function cwe_from_dict (line 236) | def cwe_from_dict(data): function issue_from_dict (line 242) | def issue_from_dict(data): FILE: bandit/core/manager.py class BanditManager (line 32) | class BanditManager: method __init__ (line 35) | def __init__( method get_skipped (line 75) | def get_skipped(self): method get_issue_list (line 85) | def get_issue_list( method populate_baseline (line 90) | def populate_baseline(self, data): method filter_results (line 105) | def filter_results(self, sev_filter, conf_filter): method results_count (line 130) | def results_count( method output_results (line 141) | def output_results( method discover_files (line 200) | def discover_files(self, targets, recursive=False, excluded_paths=""): method run_tests (line 261) | def run_tests(self): method _parse_file (line 301) | def _parse_file(self, fname, fdata, new_files_list): method _execute_ast_visitor (line 346) | def _execute_ast_visitor(self, fname, fdata, data, nosec_lines): function _get_files_from_dir (line 370) | def _get_files_from_dir( function _is_file_included (line 392) | def _is_file_included( function _matches_glob_list (line 421) | def _matches_glob_list(filename, glob_list): function _compare_baseline_results (line 428) | def _compare_baseline_results(baseline, results): function _find_candidate_matches (line 441) | def _find_candidate_matches(unmatched_issues, results_list): function _find_test_id_from_nosec_string (line 464) | def _find_test_id_from_nosec_string(extman, match): function _parse_nosec_comment (line 478) | def _parse_nosec_comment(comment): FILE: bandit/core/meta_ast.py class BanditMetaAst (line 11) | class BanditMetaAst: method __init__ (line 14) | def __init__(self): method add_node (line 17) | def add_node(self, node, parent_id, depth): method __str__ (line 33) | def __str__(self): FILE: bandit/core/metrics.py class Metrics (line 10) | class Metrics: method __init__ (line 20) | def __init__(self): method begin (line 33) | def begin(self, fname): method note_nosec (line 46) | def note_nosec(self, num=1): method note_skipped_test (line 54) | def note_skipped_test(self, num=1): method count_locs (line 62) | def count_locs(self, lines): method count_issues (line 77) | def count_issues(self, scores): method aggregate (line 80) | def aggregate(self): method _get_issue_counts (line 88) | def _get_issue_counts(scores): FILE: bandit/core/node_visitor.py class BanditNodeVisitor (line 16) | class BanditNodeVisitor: method __init__ (line 17) | def __init__( method visit_ClassDef (line 48) | def visit_ClassDef(self, node): method visit_FunctionDef (line 58) | def visit_FunctionDef(self, node): method visit_Call (line 80) | def visit_Call(self, node): method visit_Import (line 98) | def visit_Import(self, node): method visit_ImportFrom (line 113) | def visit_ImportFrom(self, node): method visit_Constant (line 146) | def visit_Constant(self, node): method visit_Str (line 163) | def visit_Str(self, node): method visit_Bytes (line 176) | def visit_Bytes(self, node): method pre_visit (line 189) | def pre_visit(self, node): method visit (line 218) | def visit(self, node): method post_visit (line 229) | def post_visit(self, node): method generic_visit (line 238) | def generic_visit(self, node): method update_scores (line 264) | def update_scores(self, scores): method process (line 278) | def process(self, data): FILE: bandit/core/test_properties.py function checks (line 12) | def checks(*args): function takes_config (line 31) | def takes_config(*args): function test_id (line 53) | def test_id(id_val): function accepts_baseline (line 67) | def accepts_baseline(*args): FILE: bandit/core/test_set.py class BanditTestSet (line 14) | class BanditTestSet: method __init__ (line 15) | def __init__(self, config, profile=None): method _get_filter (line 27) | def _get_filter(config, profile): method _load_builtins (line 59) | def _load_builtins(self, filtering, profile): method _load_tests (line 88) | def _load_tests(self, config, plugins): method get_tests (line 108) | def get_tests(self, checktype): FILE: bandit/core/tester.py class BanditTester (line 17) | class BanditTester: method __init__ (line 18) | def __init__(self, testset, debug, nosec_lines, metrics): method run_tests (line 26) | def run_tests(self, raw_context, checktype): method _get_nosecs_from_contexts (line 127) | def _get_nosecs_from_contexts(self, context, test_result=None): method report_error (line 157) | def report_error(test, context, error): FILE: bandit/core/utils.py function _get_attr_qual_name (line 21) | def _get_attr_qual_name(node, aliases): function get_call_name (line 49) | def get_call_name(node, aliases): function get_func_name (line 60) | def get_func_name(node): function get_qual_attr (line 64) | def get_qual_attr(node, aliases): function deepgetattr (line 82) | def deepgetattr(obj, attr): class InvalidModulePath (line 89) | class InvalidModulePath(Exception): class ConfigError (line 93) | class ConfigError(Exception): method __init__ (line 96) | def __init__(self, message, config_file): class ProfileNotFound (line 102) | class ProfileNotFound(Exception): method __init__ (line 105) | def __init__(self, config_file, profile): function warnings_formatter (line 115) | def warnings_formatter( function get_module_qualname_from_path (line 122) | def get_module_qualname_from_path(path): function namespace_path_join (line 157) | def namespace_path_join(base, name): function namespace_path_split (line 172) | def namespace_path_split(path): function escaped_bytes_representation (line 186) | def escaped_bytes_representation(b): function calc_linerange (line 199) | def calc_linerange(node): function linerange (line 219) | def linerange(node): function concat_string (line 273) | def concat_string(node, stop=None): function get_called_name (line 315) | def get_called_name(node): function get_path_for_function (line 332) | def get_path_for_function(f): function parse_ini_file (line 355) | def parse_ini_file(f_loc): function check_ast_node (line 370) | def check_ast_node(name): function get_nosec (line 393) | def get_nosec(nosec_lines, context): FILE: bandit/formatters/csv.py function report (line 41) | def report(manager, fileobj, sev_level, conf_level, lines=-1): FILE: bandit/formatters/custom.py class SafeMapper (line 39) | class SafeMapper(dict): method __missing__ (line 43) | def __missing__(cls, key): function report (line 48) | def report(manager, fileobj, sev_level, conf_level, template=None): FILE: bandit/formatters/html.py function report (line 161) | def report(manager, fileobj, sev_level, conf_level, lines=-1): FILE: bandit/formatters/json.py function report (line 91) | def report(manager, fileobj, sev_level, conf_level, lines=-1): FILE: bandit/formatters/sarif.py function report (line 146) | def report(manager, fileobj, sev_level, conf_level, lines=-1): function add_skipped_file_notifications (line 201) | def add_skipped_file_notifications(skips, invocation): function add_results (line 228) | def add_results(issues, run): function create_result (line 242) | def create_result(issue, rules, rule_indices): function level_from_severity (line 274) | def level_from_severity(severity): function add_region_and_context_region (line 285) | def add_region_and_context_region( function parse_code (line 311) | def parse_code(code): function create_or_find_rule (line 342) | def create_or_find_rule(issue_dict, rules, rule_indices): function to_uri (line 366) | def to_uri(file_path): FILE: bandit/formatters/screen.py function header (line 69) | def header(text, *args): function get_verbose_details (line 73) | def get_verbose_details(manager): function get_metrics (line 88) | def get_metrics(manager): function _output_issue_str (line 104) | def _output_issue_str( function get_results (line 152) | def get_results(manager, sev_level, conf_level, lines): function do_print (line 185) | def do_print(bits): function report (line 191) | def report(manager, fileobj, sev_level, conf_level, lines=-1): FILE: bandit/formatters/text.py function get_verbose_details (line 47) | def get_verbose_details(manager): function get_metrics (line 62) | def get_metrics(manager): function _output_issue_str (line 78) | def _output_issue_str( function get_results (line 118) | def get_results(manager, sev_level, conf_level, lines): function report (line 151) | def report(manager, fileobj, sev_level, conf_level, lines=-1): FILE: bandit/formatters/utils.py function wrap_file_object (line 8) | def wrap_file_object(fileobj): FILE: bandit/formatters/xml.py function report (line 45) | def report(manager, fileobj, sev_level, conf_level, lines=-1): FILE: bandit/formatters/yaml.py function report (line 76) | def report(manager, fileobj, sev_level, conf_level, lines=-1): FILE: bandit/plugins/app_debug.py function flask_debug_true (line 51) | def flask_debug_true(context): FILE: bandit/plugins/asserts.py function gen_config (line 62) | def gen_config(name): function assert_used (line 70) | def assert_used(context, config): FILE: bandit/plugins/crypto_request_no_cert_validation.py function request_with_no_cert_validation (line 56) | def request_with_no_cert_validation(context): FILE: bandit/plugins/django_sql_injection.py function keywords2dict (line 12) | def keywords2dict(keywords): function django_extra_used (line 22) | def django_extra_used(context): function django_rawsql_used (line 111) | def django_rawsql_used(context): FILE: bandit/plugins/django_xss.py class DeepAssignation (line 12) | class DeepAssignation: method __init__ (line 13) | def __init__(self, var_name, ignore_nodes=None): method is_assigned_in (line 17) | def is_assigned_in(self, items): method is_assigned (line 28) | def is_assigned(self, node): function evaluate_var (line 85) | def evaluate_var(xss_var, parent, until, ignore_nodes=None): function evaluate_call (line 132) | def evaluate_call(call, parent, ignore_nodes=None): function transform2call (line 172) | def transform2call(var): function check_risk (line 194) | def check_risk(node): function django_mark_safe (line 243) | def django_mark_safe(context): FILE: bandit/plugins/exec.py function exec_issue (line 42) | def exec_issue(): function exec_used (line 53) | def exec_used(context): FILE: bandit/plugins/general_bad_file_permissions.py function _stat_is_dangerous (line 63) | def _stat_is_dangerous(mode): function set_bad_file_permissions (line 74) | def set_bad_file_permissions(context): FILE: bandit/plugins/general_bind_all_interfaces.py function hardcoded_bind_all_interfaces (line 45) | def hardcoded_bind_all_interfaces(context): FILE: bandit/plugins/general_hardcoded_password.py function _report (line 18) | def _report(value, lineno=None): function hardcoded_password_string (line 30) | def hardcoded_password_string(context): function hardcoded_password_funcarg (line 150) | def hardcoded_password_funcarg(context): function hardcoded_password_default (line 210) | def hardcoded_password_default(context): FILE: bandit/plugins/general_hardcoded_tmp.py function gen_config (line 59) | def gen_config(name): function hardcoded_tmp_directory (line 67) | def hardcoded_tmp_directory(context, config): FILE: bandit/plugins/hashlib_insecure_functions.py function _hashlib_func (line 56) | def _hashlib_func(context, func): function _crypt_crypt (line 84) | def _crypt_crypt(context, func): function hashlib (line 112) | def hashlib(context): FILE: bandit/plugins/huggingface_unsafe_download.py function huggingface_unsafe_download (line 72) | def huggingface_unsafe_download(context): FILE: bandit/plugins/injection_paramiko.py function paramiko_calls (line 50) | def paramiko_calls(context): FILE: bandit/plugins/injection_shell.py function _evaluate_shell_call (line 17) | def _evaluate_shell_call(context): function gen_config (line 28) | def gen_config(name): function has_shell (line 81) | def has_shell(context): function subprocess_popen_with_shell_equals_true (line 110) | def subprocess_popen_with_shell_equals_true(context, config): function subprocess_without_shell_equals_true (line 237) | def subprocess_without_shell_equals_true(context, config): function any_other_function_with_shell_equals_true (line 323) | def any_other_function_with_shell_equals_true(context, config): function start_process_with_a_shell (line 408) | def start_process_with_a_shell(context, config): function start_process_with_no_shell (line 511) | def start_process_with_no_shell(context, config): function start_process_with_partial_path (line 605) | def start_process_with_partial_path(context, config): FILE: bandit/plugins/injection_sql.py function _check_string (line 83) | def _check_string(data): function _evaluate_ast (line 87) | def _evaluate_ast(node): function hardcoded_sql_expressions (line 130) | def hardcoded_sql_expressions(context): FILE: bandit/plugins/injection_wildcard.py function linux_commands_wildcard_injection (line 113) | def linux_commands_wildcard_injection(context, config): FILE: bandit/plugins/insecure_ssl_tls.py function get_bad_proto_versions (line 10) | def get_bad_proto_versions(config): function gen_config (line 14) | def gen_config(name): function ssl_with_bad_version (line 34) | def ssl_with_bad_version(context, config): function ssl_with_bad_defaults (line 160) | def ssl_with_bad_defaults(context, config): function ssl_with_no_version (line 225) | def ssl_with_no_version(context): FILE: bandit/plugins/jinja2_templates.py function jinja2_autoescape_false (line 75) | def jinja2_autoescape_false(context): FILE: bandit/plugins/logging_config_insecure_listen.py function logging_config_insecure_listen (line 48) | def logging_config_insecure_listen(context): FILE: bandit/plugins/mako_templates.py function use_of_mako_templates (line 52) | def use_of_mako_templates(context): FILE: bandit/plugins/markupsafe_markup_xss.py function gen_config (line 79) | def gen_config(name): function markupsafe_markup_xss (line 90) | def markupsafe_markup_xss(context, config): FILE: bandit/plugins/pytorch_load.py function pytorch_load (line 52) | def pytorch_load(context): FILE: bandit/plugins/request_without_timeout.py function request_without_timeout (line 57) | def request_without_timeout(context): FILE: bandit/plugins/snmp_security_check.py function snmp_insecure_version_check (line 12) | def snmp_insecure_version_check(context): function snmp_crypto_check (line 63) | def snmp_crypto_check(context): FILE: bandit/plugins/ssh_no_host_key_verification.py function ssh_no_host_key_verification (line 47) | def ssh_no_host_key_verification(context): FILE: bandit/plugins/tarfile_unsafe_members.py function exec_issue (line 56) | def exec_issue(level, members=""): function get_members_value (line 86) | def get_members_value(context): function is_filter_data (line 97) | def is_filter_data(context): function tarfile_unsafe_members (line 106) | def tarfile_unsafe_members(context): FILE: bandit/plugins/trojansource.py function trojansource (line 56) | def trojansource(context): FILE: bandit/plugins/try_except_continue.py function gen_config (line 84) | def gen_config(name): function try_except_continue (line 92) | def try_except_continue(context, config): FILE: bandit/plugins/try_except_pass.py function gen_config (line 82) | def gen_config(name): function try_except_pass (line 90) | def try_except_pass(context, config): FILE: bandit/plugins/weak_cryptographic_key.py function gen_config (line 47) | def gen_config(name): function _classify_key_size (line 59) | def _classify_key_size(config, key_type, key_size): function _weak_crypto_key_size_cryptography_io (line 90) | def _weak_crypto_key_size_cryptography_io(context, config): function _weak_crypto_key_size_pycrypto (line 142) | def _weak_crypto_key_size_pycrypto(context, config): function weak_cryptographic_key (line 162) | def weak_cryptographic_key(context, config): FILE: bandit/plugins/yaml_load.py function yaml_load (line 51) | def yaml_load(context): FILE: examples/eval.py class Test (line 9) | class Test(object): method eval (line 10) | def eval(self): method foo (line 12) | def foo(self): FILE: examples/flask_debug.py function main (line 6) | def main(): FILE: examples/hardcoded-passwords.py class SomeClass (line 3) | class SomeClass: function someFunction (line 8) | def someFunction(user, password="Admin"): function someFunction2 (line 11) | def someFunction2(password): function noMatch (line 17) | def noMatch(password): function NoMatch2 (line 23) | def NoMatch2(password): function noMatchObject (line 29) | def noMatchObject(): function doLogin (line 38) | def doLogin(password="blerg"): function NoMatch3 (line 41) | def NoMatch3(a, b): function __init__ (line 74) | def __init__(self, auth_scheme, auth_token=None, auth_username=None, aut... FILE: examples/httpoxy_cgihandler.py function application (line 4) | def application(environ, start_response): FILE: examples/jinja2_templating.py function fake_func (line 27) | def fake_func(): FILE: examples/mark_safe_insecure.py function insecure_function (line 5) | def insecure_function(text, cls=''): function try_insecure (line 17) | def try_insecure(cls='" onload="alert(\'xss\')'): function except_insecure (line 25) | def except_insecure(cls='" onload="alert(\'xss\')'): function try_else_insecure (line 33) | def try_else_insecure(cls='" onload="alert(\'xss\')'): function finally_insecure (line 44) | def finally_insecure(cls='" onload="alert(\'xss\')'): function format_arg_insecure (line 57) | def format_arg_insecure(cls='" onload="alert(\'xss\')'): function format_startarg_insecure (line 62) | def format_startarg_insecure(cls='" onload="alert(\'xss\')'): function format_keywords_insecure (line 67) | def format_keywords_insecure(cls='" onload="alert(\'xss\')'): function format_kwargs_insecure (line 72) | def format_kwargs_insecure(cls='" onload="alert(\'xss\')'): function percent_insecure (line 77) | def percent_insecure(cls='" onload="alert(\'xss\')'): function percent_list_insecure (line 82) | def percent_list_insecure(cls='" onload="alert(\'xss\')'): function percent_dict_insecure (line 87) | def percent_dict_insecure(cls='" onload="alert(\'xss\')'): function import_insecure (line 92) | def import_insecure(): function import_as_insecure (line 97) | def import_as_insecure(): function from_import_insecure (line 102) | def from_import_insecure(): function from_import_as_insecure (line 107) | def from_import_as_insecure(): function with_insecure (line 112) | def with_insecure(path): function also_with_insecure (line 117) | def also_with_insecure(path): function for_insecure (line 122) | def for_insecure(): function while_insecure (line 129) | def while_insecure(): function some_insecure_case (line 136) | def some_insecure_case(): function test_insecure_shadow (line 148) | def test_insecure_shadow(): # var assigned out of scope function test_insecure (line 152) | def test_insecure(str_arg): function test_insecure_with_assign (line 156) | def test_insecure_with_assign(str_arg=None): function test_insecure_tuple_assign (line 161) | def test_insecure_tuple_assign(): FILE: examples/mark_safe_secure.py function try_secure (line 20) | def try_secure(): function format_secure (line 32) | def format_secure(): function percent_secure (line 44) | def percent_secure(): function with_secure (line 52) | def with_secure(path): function loop_secure (line 57) | def loop_secure(): function all_secure_case (line 68) | def all_secure_case(): FILE: examples/new_candidates-all.py function subprocess_shell_cmd (line 4) | def subprocess_shell_cmd(): function yaml_load (line 11) | def yaml_load(): function xml_sax_make_parser (line 19) | def xml_sax_make_parser(): FILE: examples/new_candidates-none.py function subprocess_shell_cmd (line 1) | def subprocess_shell_cmd(): function yaml_load (line 4) | def yaml_load(): function xml_sax_make_parser (line 7) | def xml_sax_make_parser(): FILE: examples/new_candidates-nosec.py function subprocess_shell_cmd (line 4) | def subprocess_shell_cmd(): function yaml_load (line 9) | def yaml_load(): function xml_sax_make_parser (line 15) | def xml_sax_make_parser(): FILE: examples/new_candidates-some.py function subprocess_shell_cmd (line 4) | def subprocess_shell_cmd(): function yaml_load (line 11) | def yaml_load(): function xml_sax_make_parser (line 17) | def xml_sax_make_parser(): FILE: examples/pycrypto.py function test_pycrypto (line 7) | def test_pycrypto(): FILE: examples/pycryptodome.py function test_pycrypto (line 7) | def test_pycrypto(): FILE: examples/sql_multiline_statements.py function a (line 115) | def a(): FILE: examples/sql_statements.py function a (line 42) | def a(): FILE: examples/ssl-insecure-version.py function open_ssl_socket (line 32) | def open_ssl_socket(version=ssl.PROTOCOL_SSLv2): function open_ssl_socket (line 35) | def open_ssl_socket(version=SSL.SSLv2_METHOD): function open_ssl_socket (line 38) | def open_ssl_socket(version=SSL.SSLv23_METHOD): function open_ssl_socket (line 41) | def open_ssl_socket(version=SSL.TLSv1_1_METHOD): function open_ssl_socket (line 45) | def open_ssl_socket(version=SSL.TLSv1_2_METHOD): FILE: examples/subprocess_shell.py function Popen (line 5) | def Popen(*args, **kwargs): FILE: examples/tarfile_extractall.py function unsafe_archive_handler (line 6) | def unsafe_archive_handler(filename): function managed_members_archive_handler (line 12) | def managed_members_archive_handler(filename): function filter_data_archive_handler (line 18) | def filter_data_archive_handler(filename): function filter_fully_trusted_archive_handler (line 24) | def filter_fully_trusted_archive_handler(filename): function list_members_archive_handler (line 30) | def list_members_archive_handler(filename): function provided_members_archive_handler (line 36) | def provided_members_archive_handler(filename): function members_filter (line 42) | def members_filter(tarfile): FILE: examples/urlopen.py function test_urlopen (line 15) | def test_urlopen(): FILE: examples/xml_sax.py class ExampleContentHandler (line 5) | class ExampleContentHandler(xml.sax.ContentHandler): method __init__ (line 6) | def __init__(self): method startElement (line 9) | def startElement(self, name, attrs): method endElement (line 12) | def endElement(self, name): method characters (line 15) | def characters(self, content): function main (line 18) | def main(): FILE: examples/xml_xmlrpc.py function is_even (line 4) | def is_even(n): FILE: examples/yaml_load.py function test_yaml_load (line 7) | def test_yaml_load(): function test_json_load (line 18) | def test_json_load(): FILE: tests/functional/test_baseline.py class BaselineFunctionalTests (line 28) | class BaselineFunctionalTests(testtools.TestCase): method setUp (line 38) | def setUp(self): method _run_bandit_baseline (line 44) | def _run_bandit_baseline(self, target_directory, baseline_file): method _create_baseline (line 65) | def _create_baseline(self, baseline_paired_files): method test_no_new_candidates (line 115) | def test_no_new_candidates(self): method test_no_existing_no_new_candidates (line 142) | def test_no_existing_no_new_candidates(self): method test_no_existing_with_new_candidates (line 167) | def test_no_existing_with_new_candidates(self): method test_existing_and_new_candidates (line 202) | def test_existing_and_new_candidates(self): method test_no_new_candidates_include_nosec (line 234) | def test_no_new_candidates_include_nosec(self): method test_new_candidates_include_nosec_only_nosecs (line 263) | def test_new_candidates_include_nosec_only_nosecs(self): method test_new_candidates_include_nosec_new_nosecs (line 300) | def test_new_candidates_include_nosec_new_nosecs(self): FILE: tests/functional/test_functional.py class FunctionalTests (line 17) | class FunctionalTests(testtools.TestCase): method setUp (line 26) | def setUp(self): method with_test_set (line 38) | def with_test_set(self, ts): method run_example (line 49) | def run_example(self, example_script, ignore_nosec=False): method check_example (line 62) | def check_example(self, example_script, expect, ignore_nosec=False): method check_metrics (line 87) | def check_metrics(self, example_script, expect): method test_binding (line 112) | def test_binding(self): method test_crypto_md5 (line 120) | def test_crypto_md5(self): method test_ciphers (line 128) | def test_ciphers(self): method test_cipher_modes (line 136) | def test_cipher_modes(self): method test_eval (line 144) | def test_eval(self): method test_mark_safe (line 152) | def test_mark_safe(self): method test_exec (line 160) | def test_exec(self): method test_hardcoded_passwords (line 168) | def test_hardcoded_passwords(self): method test_hardcoded_tmp (line 176) | def test_hardcoded_tmp(self): method test_imports_aliases (line 184) | def test_imports_aliases(self): method test_imports_from (line 192) | def test_imports_from(self): method test_imports_function (line 200) | def test_imports_function(self): method test_telnet_usage (line 208) | def test_telnet_usage(self): method test_ftp_usage (line 216) | def test_ftp_usage(self): method test_imports (line 224) | def test_imports(self): method test_imports_using_importlib (line 232) | def test_imports_using_importlib(self): method test_mktemp (line 240) | def test_mktemp(self): method test_nonsense (line 248) | def test_nonsense(self): method test_okay (line 253) | def test_okay(self): method test_subdirectory_okay (line 261) | def test_subdirectory_okay(self): method test_os_chmod (line 269) | def test_os_chmod(self): method test_os_exec (line 277) | def test_os_exec(self): method test_os_popen (line 285) | def test_os_popen(self): method test_os_spawn (line 293) | def test_os_spawn(self): method test_os_startfile (line 301) | def test_os_startfile(self): method test_os_system (line 309) | def test_os_system(self): method test_pickle (line 317) | def test_pickle(self): method test_dill (line 325) | def test_dill(self): method test_shelve (line 333) | def test_shelve(self): method test_jsonpickle (line 341) | def test_jsonpickle(self): method test_pandas_read_pickle (line 349) | def test_pandas_read_pickle(self): method test_popen_wrappers (line 357) | def test_popen_wrappers(self): method test_random_module (line 365) | def test_random_module(self): method test_requests_ssl_verify_disabled (line 373) | def test_requests_ssl_verify_disabled(self): method test_requests_without_timeout (line 381) | def test_requests_without_timeout(self): method test_skip (line 389) | def test_skip(self): method test_ignore_skip (line 397) | def test_ignore_skip(self): method test_sql_statements (line 405) | def test_sql_statements(self): method test_multiline_sql_statements (line 423) | def test_multiline_sql_statements(self): method test_ssl_insecure_version (line 454) | def test_ssl_insecure_version(self): method test_subprocess_shell (line 462) | def test_subprocess_shell(self): method test_urlopen (line 470) | def test_urlopen(self): method test_wildcard_injection (line 478) | def test_wildcard_injection(self): method test_django_sql_injection (line 486) | def test_django_sql_injection(self): method test_django_sql_injection_raw (line 495) | def test_django_sql_injection_raw(self): method test_yaml (line 504) | def test_yaml(self): method test_host_key_verification (line 512) | def test_host_key_verification(self): method test_jinja2_templating (line 520) | def test_jinja2_templating(self): method test_mako_templating (line 528) | def test_mako_templating(self): method test_django_xss_secure (line 536) | def test_django_xss_secure(self): method test_django_xss_insecure (line 549) | def test_django_xss_insecure(self): method test_xml (line 562) | def test_xml(self): method test_httpoxy (line 612) | def test_httpoxy(self): method test_asserts (line 622) | def test_asserts(self): method test_paramiko_injection (line 651) | def test_paramiko_injection(self): method test_partial_path (line 659) | def test_partial_path(self): method test_try_except_continue (line 667) | def test_try_except_continue(self): method test_try_except_pass (line 689) | def test_try_except_pass(self): method test_metric_gathering (line 711) | def test_metric_gathering(self): method test_weak_cryptographic_key (line 725) | def test_weak_cryptographic_key(self): method test_multiline_code (line 733) | def test_multiline_code(self): method test_code_line_numbers (line 757) | def test_code_line_numbers(self): method test_flask_debug_true (line 767) | def test_flask_debug_true(self): method test_nosec (line 774) | def test_nosec(self): method test_baseline_filter (line 781) | def test_baseline_filter(self): method test_unverified_context (line 816) | def test_unverified_context(self): method test_hashlib_new_insecure_functions (line 824) | def test_hashlib_new_insecure_functions(self): method test_blacklist_pycrypto (line 832) | def test_blacklist_pycrypto(self): method test_no_blacklist_pycryptodome (line 840) | def test_no_blacklist_pycryptodome(self): method test_blacklist_pyghmi (line 851) | def test_blacklist_pyghmi(self): method test_snmp_security_check (line 859) | def test_snmp_security_check(self): method test_tarfile_unsafe_members (line 867) | def test_tarfile_unsafe_members(self): method test_pytorch_load (line 875) | def test_pytorch_load(self): method test_trojansource (line 883) | def test_trojansource(self): method test_trojansource_latin1 (line 890) | def test_trojansource_latin1(self): method test_markupsafe_markup_xss (line 897) | def test_markupsafe_markup_xss(self): method test_markupsafe_markup_xss_extend_markup_names (line 904) | def test_markupsafe_markup_xss_extend_markup_names(self): method test_markupsafe_markup_xss_allowed_calls (line 918) | def test_markupsafe_markup_xss_allowed_calls(self): method test_huggingface_unsafe_download (line 930) | def test_huggingface_unsafe_download(self): FILE: tests/functional/test_runtime.py class RuntimeTests (line 10) | class RuntimeTests(testtools.TestCase): method _test_runtime (line 11) | def _test_runtime(self, cmdlist, infile=None): method _test_example (line 23) | def _test_example(self, cmdlist, targets): method test_no_arguments (line 28) | def test_no_arguments(self): method test_piped_input (line 37) | def test_piped_input(self): method test_nonexistent_config (line 49) | def test_nonexistent_config(self): method test_help_arg (line 56) | def test_help_arg(self): method test_example_nonexistent (line 67) | def test_example_nonexistent(self): method test_example_okay (line 80) | def test_example_okay(self): method test_example_nonsense (line 94) | def test_example_nonsense(self): method test_example_nonsense2 (line 107) | def test_example_nonsense2(self): method test_example_imports (line 120) | def test_example_imports(self): FILE: tests/unit/cli/test_baseline.py class BanditBaselineToolTests (line 33) | class BanditBaselineToolTests(testtools.TestCase): method setUpClass (line 35) | def setUpClass(cls): method setUp (line 41) | def setUp(self): method tearDown (line 46) | def tearDown(self): method test_bandit_baseline (line 51) | def test_bandit_baseline(self): method test_main_non_repo (line 124) | def test_main_non_repo(self): method test_main_git_command_failure (line 133) | def test_main_git_command_failure(self): method test_main_no_parent_commit (line 154) | def test_main_no_parent_commit(self): method test_main_subprocess_error (line 166) | def test_main_subprocess_error(self): method test_init_logger (line 191) | def test_init_logger(self): method test_initialize_no_repo (line 199) | def test_initialize_no_repo(self): method test_initialize_git_command_failure (line 210) | def test_initialize_git_command_failure(self): method test_initialize_dirty_repo (line 231) | def test_initialize_dirty_repo(self): method test_initialize_existing_report_file (line 250) | def test_initialize_existing_report_file(self): method test_initialize_with_output_argument (line 272) | def test_initialize_with_output_argument(self): method test_initialize_existing_temp_file (line 285) | def test_initialize_existing_temp_file(self): FILE: tests/unit/cli/test_config_generator.py function gen_config (line 17) | def gen_config(name): function _test_plugin (line 23) | def _test_plugin(context, conf): class BanditConfigGeneratorLoggerTests (line 27) | class BanditConfigGeneratorLoggerTests(testtools.TestCase): method setUp (line 28) | def setUp(self): method tearDown (line 35) | def tearDown(self): method test_init_logger (line 40) | def test_init_logger(self): class BanditConfigGeneratorTests (line 48) | class BanditConfigGeneratorTests(testtools.TestCase): method test_parse_args_no_defaults (line 50) | def test_parse_args_no_defaults(self): method test_parse_args_show_defaults (line 55) | def test_parse_args_show_defaults(self): method test_parse_args_out_file (line 61) | def test_parse_args_out_file(self): method test_get_config_settings (line 66) | def test_get_config_settings(self): method test_main_show_defaults (line 79) | def test_main_show_defaults(self): FILE: tests/unit/cli/test_main.py class BanditCLIMainLoggerTests (line 50) | class BanditCLIMainLoggerTests(testtools.TestCase): method setUp (line 51) | def setUp(self): method tearDown (line 58) | def tearDown(self): method test_init_logger (line 63) | def test_init_logger(self): method test_init_logger_debug_mode (line 71) | def test_init_logger_debug_mode(self): class BanditCLIMainTests (line 77) | class BanditCLIMainTests(testtools.TestCase): method setUp (line 78) | def setUp(self): method tearDown (line 82) | def tearDown(self): method test_get_options_from_ini_no_ini_path_no_target (line 86) | def test_get_options_from_ini_no_ini_path_no_target(self): method test_get_options_from_ini_empty_directory_no_target (line 91) | def test_get_options_from_ini_empty_directory_no_target(self): method test_get_options_from_ini_no_ini_path_no_bandit_files (line 97) | def test_get_options_from_ini_no_ini_path_no_bandit_files(self): method test_get_options_from_ini_no_ini_path_multi_bandit_files (line 105) | def test_get_options_from_ini_no_ini_path_multi_bandit_files(self): method test_init_extensions (line 127) | def test_init_extensions(self): method test_log_option_source_arg_val (line 131) | def test_log_option_source_arg_val(self): method test_log_option_source_ini_value (line 145) | def test_log_option_source_ini_value(self): method test_log_option_source_ini_val_with_str_default_and_no_arg_val (line 156) | def test_log_option_source_ini_val_with_str_default_and_no_arg_val(self): method test_log_option_source_no_values (line 170) | def test_log_option_source_no_values(self): method test_main_config_unopenable (line 179) | def test_main_config_unopenable(self): method test_main_invalid_config (line 187) | def test_main_invalid_config(self): method test_main_handle_ini_options (line 198) | def test_main_handle_ini_options(self): method test_main_profile_not_found (line 224) | def test_main_profile_not_found(self): method test_main_baseline_ioerror (line 241) | def test_main_baseline_ioerror(self): method test_main_invalid_output_format (line 270) | def test_main_invalid_output_format(self): method test_main_exit_with_results (line 284) | def test_main_exit_with_results(self): method test_main_exit_with_no_results (line 300) | def test_main_exit_with_no_results(self): method test_main_exit_with_results_and_with_exit_zero_flag (line 317) | def test_main_exit_with_results_and_with_exit_zero_flag(self): FILE: tests/unit/core/test_blacklisting.py class BlacklistingTests (line 10) | class BlacklistingTests(testtools.TestCase): method test_report_issue (line 11) | def test_report_issue(self): method test_report_issue_defaults (line 23) | def test_report_issue_defaults(self): FILE: tests/unit/core/test_config.py class TempFile (line 17) | class TempFile(fixtures.Fixture): method __init__ (line 18) | def __init__(self, contents=None, suffix=".yaml"): method setUp (line 23) | def setUp(self): class TestInit (line 37) | class TestInit(testtools.TestCase): method test_settings (line 38) | def test_settings(self): method test_file_does_not_exist (line 53) | def test_file_does_not_exist(self): method test_yaml_invalid (line 61) | def test_yaml_invalid(self): class TestGetOption (line 73) | class TestGetOption(testtools.TestCase): method setUp (line 74) | def setUp(self): method test_levels (line 91) | def test_levels(self): method test_levels_not_exist (line 99) | def test_levels_not_exist(self): class TestGetSetting (line 106) | class TestGetSetting(testtools.TestCase): method setUp (line 107) | def setUp(self): method test_not_exist (line 113) | def test_not_exist(self): class TestConfigCompat (line 120) | class TestConfigCompat(testtools.TestCase): method setUp (line 170) | def setUp(self): method test_converted_include (line 175) | def test_converted_include(self): method test_converted_exclude (line 186) | def test_converted_exclude(self): method test_converted_blacklist_call_data (line 192) | def test_converted_blacklist_call_data(self): method test_converted_blacklist_import_data (line 208) | def test_converted_blacklist_import_data(self): method test_converted_blacklist_call_test (line 223) | def test_converted_blacklist_call_test(self): method test_converted_blacklist_import_test (line 229) | def test_converted_blacklist_import_test(self): method test_converted_exclude_blacklist (line 235) | def test_converted_exclude_blacklist(self): method test_deprecation_message (line 241) | def test_deprecation_message(self): method test_blacklist_error (line 254) | def test_blacklist_error(self): method test_bad_yaml (line 274) | def test_bad_yaml(self): class TestTomlConfig (line 282) | class TestTomlConfig(TestConfigCompat): FILE: tests/unit/core/test_context.py class ContextTests (line 13) | class ContextTests(testtools.TestCase): method test_context_create (line 14) | def test_context_create(self): method test_repr (line 22) | def test_repr(self): method test_call_args (line 29) | def test_call_args(self, get_literal_value): method test_call_args_count (line 38) | def test_call_args_count(self): method test_call_function_name (line 52) | def test_call_function_name(self): method test_call_function_name_qual (line 61) | def test_call_function_name_qual(self): method test_call_keywords (line 71) | def test_call_keywords(self, get_literal_value): method test_node (line 89) | def test_node(self): method test_string_val (line 98) | def test_string_val(self): method test_statement (line 107) | def test_statement(self): method test_function_def_defaults_qual (line 117) | def test_function_def_defaults_qual(self, get_qual_attr): method test__get_literal_value (line 132) | def test__get_literal_value(self): method test_check_call_arg_value (line 173) | def test_check_call_arg_value(self, call_keywords): method test_get_lineno_for_call_arg (line 190) | def test_get_lineno_for_call_arg(self, node): method test_get_call_arg_at_position (line 204) | def test_get_call_arg_at_position(self): method test_is_module_being_imported (line 222) | def test_is_module_being_imported(self): method test_is_module_imported_exact (line 231) | def test_is_module_imported_exact(self): method test_is_module_imported_like (line 240) | def test_is_module_imported_like(self): method test_filename (line 249) | def test_filename(self): FILE: tests/unit/core/test_docs_util.py class DocsUtilTests (line 10) | class DocsUtilTests(testtools.TestCase): method test_overwrite_bib_info (line 15) | def test_overwrite_bib_info(self): method test_plugin_call_bib (line 22) | def test_plugin_call_bib(self): method test_import_call_bib (line 26) | def test_import_call_bib(self): FILE: tests/unit/core/test_issue.py class IssueTests (line 14) | class IssueTests(testtools.TestCase): method test_issue_create (line 15) | def test_issue_create(self): method test_issue_str (line 19) | def test_issue_str(self): method test_issue_as_dict (line 32) | def test_issue_as_dict(self): method test_issue_filter_severity (line 54) | def test_issue_filter_severity(self): method test_issue_filter_confidence (line 65) | def test_issue_filter_confidence(self): method test_matches_issue (line 76) | def test_matches_issue(self): method test_get_code (line 121) | def test_get_code(self, getline): function _get_issue_instance (line 133) | def _get_issue_instance( FILE: tests/unit/core/test_manager.py class ManagerTests (line 17) | class ManagerTests(testtools.TestCase): method _get_issue_instance (line 18) | def _get_issue_instance( method setUp (line 30) | def setUp(self): method test_create_manager (line 43) | def test_create_manager(self): method test_create_manager_with_profile (line 49) | def test_create_manager_with_profile(self): method test_matches_globlist (line 63) | def test_matches_globlist(self): method test_is_file_included (line 67) | def test_is_file_included(self): method test_get_files_from_dir (line 117) | def test_get_files_from_dir(self, os_walk): method test_populate_baseline_success (line 130) | def test_populate_baseline_success(self): method test_populate_baseline_invalid_json (line 171) | def test_populate_baseline_invalid_json(self, mock_logger_warning): method test_results_count (line 179) | def test_results_count(self): method test_output_results_invalid_format (line 195) | def test_output_results_invalid_format(self): method test_output_results_valid_format (line 209) | def test_output_results_valid_format(self): method test_discover_files_recurse_skip (line 224) | def test_discover_files_recurse_skip(self, isdir): method test_discover_files_recurse_files (line 231) | def test_discover_files_recurse_files(self, isdir): method test_discover_files_exclude (line 240) | def test_discover_files_exclude(self, isdir): method test_discover_files_exclude_dir (line 249) | def test_discover_files_exclude_dir(self, isdir): method test_discover_files_exclude_cmdline (line 276) | def test_discover_files_exclude_cmdline(self, isdir): method test_discover_files_exclude_glob (line 287) | def test_discover_files_exclude_glob(self, isdir): method test_discover_files_include (line 296) | def test_discover_files_include(self, isdir): method test_run_tests_keyboardinterrupt (line 304) | def test_run_tests_keyboardinterrupt(self): method test_run_tests_ioerror (line 318) | def test_run_tests_ioerror(self): method test_compare_baseline (line 330) | def test_compare_baseline(self): method test_find_candidate_matches (line 364) | def test_find_candidate_matches(self): FILE: tests/unit/core/test_meta_ast.py class BanditMetaAstTests (line 9) | class BanditMetaAstTests(testtools.TestCase): method setUp (line 10) | def setUp(self): method test_add_node (line 19) | def test_add_node(self): method test_str (line 27) | def test_str(self): FILE: tests/unit/core/test_test_set.py function test_plugin (line 19) | def test_plugin(): class BanditTestSetTests (line 46) | class BanditTestSetTests(testtools.TestCase): method _make_test_manager (line 47) | def _make_test_manager(self, plugin): method setUp (line 52) | def setUp(self): method tearDown (line 63) | def tearDown(self): method test_has_defaults (line 68) | def test_has_defaults(self): method test_profile_include_id (line 72) | def test_profile_include_id(self): method test_profile_exclude_id (line 77) | def test_profile_exclude_id(self): method test_profile_include_none (line 82) | def test_profile_include_none(self): method test_profile_exclude_none (line 87) | def test_profile_exclude_none(self): method test_profile_has_builtin_blacklist (line 92) | def test_profile_has_builtin_blacklist(self): method test_profile_exclude_builtin_blacklist (line 98) | def test_profile_exclude_builtin_blacklist(self): method test_profile_exclude_builtin_blacklist_specific (line 105) | def test_profile_exclude_builtin_blacklist_specific(self): method test_profile_filter_blacklist_none (line 112) | def test_profile_filter_blacklist_none(self): method test_profile_filter_blacklist_one (line 120) | def test_profile_filter_blacklist_one(self): method test_profile_filter_blacklist_include (line 129) | def test_profile_filter_blacklist_include(self): method test_profile_filter_blacklist_all (line 138) | def test_profile_filter_blacklist_all(self): method test_profile_blacklist_compat (line 148) | def test_profile_blacklist_compat(self): FILE: tests/unit/core/test_util.py function _touch (line 17) | def _touch(path): class UtilTests (line 22) | class UtilTests(testtools.TestCase): method setUp (line 25) | def setUp(self): method _setup_get_module_qualname_from_path (line 29) | def _setup_get_module_qualname_from_path(self): method test_get_module_qualname_from_path_abs_typical (line 100) | def test_get_module_qualname_from_path_abs_typical(self): method test_get_module_qualname_from_path_with_dot (line 110) | def test_get_module_qualname_from_path_with_dot(self): method test_get_module_qualname_from_path_abs_missingmid (line 119) | def test_get_module_qualname_from_path_abs_missingmid(self): method test_get_module_qualname_from_path_abs_missingend (line 130) | def test_get_module_qualname_from_path_abs_missingend(self): method test_get_module_qualname_from_path_abs_syms (line 141) | def test_get_module_qualname_from_path_abs_syms(self): method test_get_module_qualname_from_path_rel_typical (line 151) | def test_get_module_qualname_from_path_rel_typical(self): method test_get_module_qualname_from_path_rel_missingmid (line 161) | def test_get_module_qualname_from_path_rel_missingmid(self): method test_get_module_qualname_from_path_rel_missingend (line 177) | def test_get_module_qualname_from_path_rel_missingend(self): method test_get_module_qualname_from_path_rel_syms (line 193) | def test_get_module_qualname_from_path_rel_syms(self): method test_get_module_qualname_from_path_sys (line 202) | def test_get_module_qualname_from_path_sys(self): method test_get_module_qualname_from_path_invalid_path (line 212) | def test_get_module_qualname_from_path_invalid_path(self): method test_get_module_qualname_from_path_dir (line 218) | def test_get_module_qualname_from_path_dir(self): method test_namespace_path_join (line 227) | def test_namespace_path_join(self): method test_namespace_path_split (line 231) | def test_namespace_path_split(self): method test_get_call_name1 (line 236) | def test_get_call_name1(self): method test_get_call_name2 (line 242) | def test_get_call_name2(self): method test_get_call_name3 (line 255) | def test_get_call_name3(self): method test_linerange (line 263) | def test_linerange(self): method test_path_for_function (line 276) | def test_path_for_function(self): method test_path_for_function_no_file (line 280) | def test_path_for_function_no_file(self): method test_path_for_function_no_module (line 283) | def test_path_for_function_no_module(self): method test_escaped_representation_simple (line 286) | def test_escaped_representation_simple(self): method test_escaped_representation_valid_not_printable (line 290) | def test_escaped_representation_valid_not_printable(self): method test_escaped_representation_invalid (line 294) | def test_escaped_representation_invalid(self): method test_escaped_representation_mixed (line 298) | def test_escaped_representation_mixed(self): method test_deepgetattr (line 302) | def test_deepgetattr(self): method test_parse_ini_file (line 316) | def test_parse_ini_file(self): method test_check_ast_node_good (line 334) | def test_check_ast_node_good(self): method test_check_ast_node_bad_node (line 338) | def test_check_ast_node_bad_node(self): method test_check_ast_node_bad_type (line 341) | def test_check_ast_node_bad_type(self): FILE: tests/unit/formatters/test_csv.py class CsvFormatterTests (line 16) | class CsvFormatterTests(testtools.TestCase): method setUp (line 17) | def setUp(self): method test_report (line 47) | def test_report(self): FILE: tests/unit/formatters/test_custom.py class CustomFormatterTests (line 14) | class CustomFormatterTests(testtools.TestCase): method setUp (line 15) | def setUp(self): method test_report (line 44) | def test_report(self): FILE: tests/unit/formatters/test_html.py class HtmlFormatterTests (line 19) | class HtmlFormatterTests(testtools.TestCase): method setUp (line 20) | def setUp(self): method test_report_with_skipped (line 29) | def test_report_with_skipped(self): method test_report_contents (line 45) | def test_report_contents(self, get_issue_list, get_code): method test_escaping (line 134) | def test_escaping(self, get_issue_list, get_code): function _get_issue_instance (line 152) | def _get_issue_instance( FILE: tests/unit/formatters/test_json.py class JsonFormatterTests (line 20) | class JsonFormatterTests(testtools.TestCase): method setUp (line 21) | def setUp(self): method test_report (line 74) | def test_report(self, get_issue_list): FILE: tests/unit/formatters/test_sarif.py class SarifFormatterTests (line 18) | class SarifFormatterTests(testtools.TestCase): method setUp (line 19) | def setUp(self): method test_report (line 79) | def test_report(self, get_issue_list): FILE: tests/unit/formatters/test_screen.py class ScreenFormatterTests (line 19) | class ScreenFormatterTests(testtools.TestCase): method setUp (line 20) | def setUp(self): method test_output_issue (line 24) | def test_output_issue(self, get_code): method test_no_issues (line 83) | def test_no_issues(self, get_issue_list): method test_report_nobaseline (line 102) | def test_report_nobaseline(self, get_issue_list): method test_report_baseline (line 195) | def test_report_baseline(self, get_issue_list): function _get_issue_instance (line 237) | def _get_issue_instance( FILE: tests/unit/formatters/test_text.py class TextFormatterTests (line 19) | class TextFormatterTests(testtools.TestCase): method setUp (line 20) | def setUp(self): method test_output_issue (line 24) | def test_output_issue(self, get_code): method test_no_issues (line 69) | def test_no_issues(self, get_issue_list): method test_report_nobaseline (line 87) | def test_report_nobaseline(self, get_issue_list): method test_report_baseline (line 170) | def test_report_baseline(self, get_issue_list): function _get_issue_instance (line 212) | def _get_issue_instance( FILE: tests/unit/formatters/test_xml.py class XmlFormatterTests (line 17) | class XmlFormatterTests(testtools.TestCase): method setUp (line 18) | def setUp(self): method _xml_to_dict (line 44) | def _xml_to_dict(self, t): method test_report (line 64) | def test_report(self): FILE: tests/unit/formatters/test_yaml.py class YamlFormatterTests (line 20) | class YamlFormatterTests(testtools.TestCase): method setUp (line 21) | def setUp(self): method test_report (line 62) | def test_report(self, get_issue_list):