Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.13 KB | None | 0 0
  1. (env)☁ bandit [mako] ⚡ bandit -d examples/false_negative.py
  2. [manager] DEBUG logging initialized
  3. [test_set] DEBUG _get_decorators_list returning: ['category', 'checks', 'checks_calls', 'checks_exec', 'checks_functions', 'checks_imports', 'checks_strings', 'severity', 'takes_config', 'title', 'uuid']
  4. [test_set] DEBUG importing plugin module: plugins.__init__
  5. [test_set] DEBUG importing plugin module: plugins.blacklist_calls
  6. [test_properties] DEBUG checks_decorator function executed
  7. [test_properties] DEBUG func._checks: ['Call']
  8. [test_set] DEBUG added function blacklist_functions targetting Call
  9. [test_set] DEBUG importing plugin module: plugins.blacklist_imports
  10. [test_properties] DEBUG checks_decorator function executed
  11. [test_properties] DEBUG func._checks: ['Import', 'ImportFrom']
  12. [test_properties] DEBUG checks_decorator function executed
  13. [test_properties] DEBUG func._checks: ['Call']
  14. [test_set] DEBUG added function blacklist_import_func targetting Call
  15. [test_set] DEBUG added function blacklist_imports targetting Import
  16. [test_set] DEBUG added function blacklist_imports targetting ImportFrom
  17. [test_set] DEBUG importing plugin module: plugins.crypto_random
  18. [test_properties] DEBUG checks_decorator function executed
  19. [test_properties] DEBUG func._checks: ['Call']
  20. [test_properties] DEBUG checks_decorator function executed
  21. [test_properties] DEBUG func._checks: ['Import', 'ImportFrom']
  22. [test_set] DEBUG added function random_lib_calls targetting Call
  23. [test_set] DEBUG added function random_lib_imports targetting Import
  24. [test_set] DEBUG added function random_lib_imports targetting ImportFrom
  25. [test_set] DEBUG importing plugin module: plugins.crypto_request_no_cert_validation
  26. [test_properties] DEBUG checks_decorator function executed
  27. [test_properties] DEBUG func._checks: ['Call']
  28. [test_set] DEBUG added function request_with_no_cert_validation targetting Call
  29. [test_set] DEBUG importing plugin module: plugins.exec
  30. [test_properties] DEBUG checks_decorator function executed
  31. [test_properties] DEBUG func._checks: ['Exec']
  32. [test_set] DEBUG added function exec_used targetting Exec
  33. [test_set] DEBUG importing plugin module: plugins.exec_as_root
  34. [test_properties] DEBUG checks_decorator function executed
  35. [test_properties] DEBUG func._checks: ['Call']
  36. [test_set] DEBUG added function execute_with_run_as_root_equals_true targetting Call
  37. [test_set] DEBUG importing plugin module: plugins.general_bad_file_permissions
  38. [test_properties] DEBUG checks_decorator function executed
  39. [test_properties] DEBUG func._checks: ['Call']
  40. [test_set] DEBUG added function set_bad_file_permissions targetting Call
  41. [test_set] DEBUG importing plugin module: plugins.general_bind_all_interfaces
  42. [test_properties] DEBUG checks_decorator function executed
  43. [test_properties] DEBUG func._checks: ['Str']
  44. [test_set] DEBUG added function hardcoded_bind_all_interfaces targetting Str
  45. [test_set] DEBUG importing plugin module: plugins.general_hardcoded_password
  46. [test_set] DEBUG importing plugin module: plugins.general_hardcoded_tmp
  47. [test_properties] DEBUG checks_decorator function executed
  48. [test_properties] DEBUG func._checks: ['Str']
  49. [test_set] DEBUG added function hardcoded_tmp_directory targetting Str
  50. [test_set] DEBUG importing plugin module: plugins.injection_shell
  51. [test_properties] DEBUG checks_decorator function executed
  52. [test_properties] DEBUG func._checks: ['Call']
  53. [test_properties] DEBUG checks_decorator function executed
  54. [test_properties] DEBUG func._checks: ['Call']
  55. [test_set] DEBUG added function any_other_function_with_shell_equals_true targetting Call
  56. [test_set] DEBUG added function subprocess_popen_with_shell_equals_true targetting Call
  57. [test_set] DEBUG importing plugin module: plugins.injection_sql
  58. [test_properties] DEBUG checks_decorator function executed
  59. [test_properties] DEBUG func._checks: ['Str']
  60. [test_set] DEBUG added function hardcoded_sql_expressions targetting Str
  61. [test_set] DEBUG importing plugin module: plugins.injection_wildcard
  62. [test_properties] DEBUG checks_decorator function executed
  63. [test_properties] DEBUG func._checks: ['Call']
  64. [test_set] DEBUG added function linux_commands_wildcard_injection targetting Call
  65. [test_set] DEBUG importing plugin module: plugins.insecure_ssl_tls
  66. [test_properties] DEBUG checks_decorator function executed
  67. [test_properties] DEBUG func._checks: ['Call']
  68. [test_properties] DEBUG checks_decorator function executed
  69. [test_properties] DEBUG func._checks: ['FunctionDef']
  70. [test_properties] DEBUG checks_decorator function executed
  71. [test_properties] DEBUG func._checks: ['Call']
  72. [test_set] DEBUG added function ssl_with_bad_defaults targetting FunctionDef
  73. [test_set] DEBUG added function ssl_with_bad_version targetting Call
  74. [test_set] DEBUG added function ssl_with_no_version targetting Call
  75. [test_set] DEBUG importing plugin module: plugins.jinja2_templates
  76. [test_properties] DEBUG checks_decorator function executed
  77. [test_properties] DEBUG func._checks: ['Call']
  78. [test_set] DEBUG added function jinja2_autoescape_false targetting Call
  79. [test_set] DEBUG importing plugin module: plugins.mako_templates
  80. [test_properties] DEBUG checks_decorator function executed
  81. [test_properties] DEBUG func._checks: ['Call']
  82. [test_set] DEBUG added function use_of_mako_templates targetting Call
  83. [test_set] DEBUG importing plugin module: plugins.secret_config_option
  84. [test_properties] DEBUG checks_decorator function executed
  85. [test_properties] DEBUG func._checks: ['Call']
  86. [test_set] DEBUG added function password_config_option_not_marked_secret targetting Call
  87. [test_set] DEBUG obtained filtered set of tests:
  88. [test_set] DEBUG Exec : {'exec_used': <function exec_used at 0x10cda56e0>}
  89. [test_set] DEBUG Call : {'random_lib_calls': <function random_lib_calls at 0x10cda5500>, 'blacklist_import_func': <function blacklist_import_func at 0x10cda1de8>, 'use_of_mako_templates': <function use_of_mako_templates at 0x10ce06488>, 'set_bad_file_permissions': <function set_bad_file_permissions at 0x10cda5ed8>, 'request_with_no_cert_validation': <function request_with_no_cert_validation at 0x10cda57d0>, 'ssl_with_no_version': <function ssl_with_no_version at 0x10ce06320>, 'subprocess_popen_with_shell_equals_true': <function subprocess_popen_with_shell_equals_true at 0x10cdb51b8>, 'ssl_with_bad_version': <function ssl_with_bad_version at 0x10ce06230>, 'any_other_function_with_shell_equals_true': <function any_other_function_with_shell_equals_true at 0x10cdb5140>, 'blacklist_functions': <function blacklist_functions at 0x10cda18c0>, 'linux_commands_wildcard_injection': <function linux_commands_wildcard_injection at 0x10ce06050>, 'password_config_option_not_marked_secret': <function password_config_option_not_marked_secret at 0x10ce06500>, 'jinja2_autoescape_false': <function jinja2_autoescape_false at 0x10ce06410>, 'execute_with_run_as_root_equals_true': <function execute_with_run_as_root_equals_true at 0x10cda5c80>}
  90. [test_set] DEBUG ImportFrom : {'blacklist_imports': <function blacklist_imports at 0x10cda1c08>, 'random_lib_imports': <function random_lib_imports at 0x10cda5a28>}
  91. [test_set] DEBUG Str : {'hardcoded_sql_expressions': <function hardcoded_sql_expressions at 0x10cdf7488>, 'hardcoded_tmp_directory': <function hardcoded_tmp_directory at 0x10cdabd70>, 'hardcoded_bind_all_interfaces': <function hardcoded_bind_all_interfaces at 0x10cdab9b0>}
  92. [test_set] DEBUG Import : {'blacklist_imports': <function blacklist_imports at 0x10cda1c08>, 'random_lib_imports': <function random_lib_imports at 0x10cda5a28>}
  93. [test_set] DEBUG FunctionDef : {'ssl_with_bad_defaults': <function ssl_with_bad_defaults at 0x10ce06398>}
  94. [manager] DEBUG working on file : examples/false_negative.py
  95. [node_visitor] DEBUG Module qualified name: false_negative
  96. [node_visitor] DEBUG Module(body=[Import(names=[alias(name='mako', asname=None)]), Expr(value=Call(func=Attribute(value=Attribute(value=Name(id='mako', ctx=Load()), attr='template', ctx=Load()), attr='Template', ctx=Load()), args=[Str(s='hern')], keywords=[], starargs=None, kwargs=None))])
  97. [meta_ast] DEBUG adding node : 0x10cdfb750 [0]
  98. [node_visitor] DEBUG entering: 0x10cdfb750 <class '_ast.Module'> [0]
  99. [node_visitor] DEBUG Import(names=[alias(name='mako', asname=None)])
  100. [meta_ast] DEBUG adding node : 0x10cdfbad0 [1]
  101. [node_visitor] DEBUG entering: 0x10cdfbad0 <class '_ast.Import'> [1]
  102. [node_visitor] DEBUG visit_Import called (Import(names=[alias(name='mako', asname=None)]))
  103. [test_set] DEBUG get_tests called with check type: Import
  104. [test_set] DEBUG get_tests returning scoped_tests : {'blacklist_imports': <function blacklist_imports at 0x10cda1c08>, 'random_lib_imports': <function random_lib_imports at 0x10cda5a28>}
  105. [node_visitor] DEBUG alias(name='mako', asname=None)
  106. [meta_ast] DEBUG adding node : 0x10cdfb650 [2]
  107. [node_visitor] DEBUG entering: 0x10cdfb650 <class '_ast.alias'> [2]
  108. [node_visitor] DEBUG 2 exiting : 0x10cdfb650
  109. [node_visitor] DEBUG 1 exiting : 0x10cdfbad0
  110. [node_visitor] DEBUG Expr(value=Call(func=Attribute(value=Attribute(value=Name(id='mako', ctx=Load()), attr='template', ctx=Load()), attr='Template', ctx=Load()), args=[Str(s='hern')], keywords=[], starargs=None, kwargs=None))
  111. [meta_ast] DEBUG adding node : 0x10cdfbb50 [1]
  112. [node_visitor] DEBUG entering: 0x10cdfbb50 <class '_ast.Expr'> [1]
  113. [node_visitor] DEBUG Call(func=Attribute(value=Attribute(value=Name(id='mako', ctx=Load()), attr='template', ctx=Load()), attr='Template', ctx=Load()), args=[Str(s='hern')], keywords=[], starargs=None, kwargs=None)
  114. [meta_ast] DEBUG adding node : 0x10ce082d0 [2]
  115. [node_visitor] DEBUG entering: 0x10ce082d0 <class '_ast.Call'> [2]
  116. [node_visitor] DEBUG visit_Call called (Call(func=Attribute(value=Attribute(value=Name(id='mako', ctx=Load()), attr='template', ctx=Load()), attr='Template', ctx=Load()), args=[Str(s='hern')], keywords=[], starargs=None, kwargs=None))
  117. INCORRECT!!!!!!!!
  118. <_ast.Attribute object at 0x10ce085d0>
  119. <_ast.Attribute object at 0x10ce085d0>
  120. id: None
  121. name: None
  122. <_ast.Name object at 0x10ce08710>
  123. id: mako
  124. name: None
  125. <_ast.Load object at 0x10cb03190>
  126. id: None
  127. name: None
  128. <_ast.Load object at 0x10cb03190>
  129. id: None
  130. name: None
  131. Template
  132. [test_set] DEBUG get_tests called with check type: Call
  133. [test_set] DEBUG get_tests returning scoped_tests : {'random_lib_calls': <function random_lib_calls at 0x10cda5500>, 'blacklist_import_func': <function blacklist_import_func at 0x10cda1de8>, 'use_of_mako_templates': <function use_of_mako_templates at 0x10ce06488>, 'set_bad_file_permissions': <function set_bad_file_permissions at 0x10cda5ed8>, 'request_with_no_cert_validation': <function request_with_no_cert_validation at 0x10cda57d0>, 'ssl_with_no_version': <function ssl_with_no_version at 0x10ce06320>, 'subprocess_popen_with_shell_equals_true': <function subprocess_popen_with_shell_equals_true at 0x10cdb51b8>, 'ssl_with_bad_version': <function ssl_with_bad_version at 0x10ce06230>, 'any_other_function_with_shell_equals_true': <function any_other_function_with_shell_equals_true at 0x10cdb5140>, 'blacklist_functions': <function blacklist_functions at 0x10cda18c0>, 'linux_commands_wildcard_injection': <function linux_commands_wildcard_injection at 0x10ce06050>, 'password_config_option_not_marked_secret': <function password_config_option_not_marked_secret at 0x10ce06500>, 'jinja2_autoescape_false': <function jinja2_autoescape_false at 0x10ce06410>, 'execute_with_run_as_root_equals_true': <function execute_with_run_as_root_equals_true at 0x10cda5c80>}
  134. ['Template'] Template
  135. ('__class__', <class '_ast.Call'>)
  136. ('__delattr__', <method-wrapper '__delattr__' of Call object at 0x10ce082d0>)
  137. ('__dict__', {'col_offset': 0, 'starargs': None, 'args': [<_ast.Str object at 0x10ce08210>], 'lineno': 2, 'func': <_ast.Attribute object at 0x10ce084d0>, 'kwargs': None, 'keywords': []})
  138. ('__doc__', None)
  139. ('__format__', <built-in method __format__ of Call object at 0x10ce082d0>)
  140. ('__getattribute__', <method-wrapper '__getattribute__' of Call object at 0x10ce082d0>)
  141. ('__hash__', <method-wrapper '__hash__' of Call object at 0x10ce082d0>)
  142. ('__init__', <method-wrapper '__init__' of Call object at 0x10ce082d0>)
  143. ('__module__', '_ast')
  144. ('__new__', <built-in method __new__ of type object at 0x10c889e00>)
  145. ('__reduce__', <built-in method __reduce__ of Call object at 0x10ce082d0>)
  146. ('__reduce_ex__', <built-in method __reduce_ex__ of Call object at 0x10ce082d0>)
  147. ('__repr__', <method-wrapper '__repr__' of Call object at 0x10ce082d0>)
  148. ('__setattr__', <method-wrapper '__setattr__' of Call object at 0x10ce082d0>)
  149. ('__sizeof__', <built-in method __sizeof__ of Call object at 0x10ce082d0>)
  150. ('__str__', <method-wrapper '__str__' of Call object at 0x10ce082d0>)
  151. ('__subclasshook__', <built-in method __subclasshook__ of type object at 0x7fedd591d990>)
  152. ('__weakref__', None)
  153. ('_attributes', ('lineno', 'col_offset'))
  154. ('_fields', ('func', 'args', 'keywords', 'starargs', 'kwargs'))
  155. ('args', [<_ast.Str object at 0x10ce08210>])
  156. ('col_offset', 0)
  157. ('func', <_ast.Attribute object at 0x10ce084d0>)
  158. ('keywords', [])
  159. ('kwargs', None)
  160. ('lineno', 2)
  161. ('starargs', None)
  162.  
  163. ('__class__', <class '_ast.Attribute'>)
  164. ('__delattr__', <method-wrapper '__delattr__' of Attribute object at 0x10ce084d0>)
  165. ('__dict__', {'col_offset': 0, 'ctx': <_ast.Load object at 0x10cb03190>, 'attr': 'Template', 'value': <_ast.Attribute object at 0x10ce085d0>, 'lineno': 2})
  166. ('__doc__', None)
  167. ('__format__', <built-in method __format__ of Attribute object at 0x10ce084d0>)
  168. ('__getattribute__', <method-wrapper '__getattribute__' of Attribute object at 0x10ce084d0>)
  169. ('__hash__', <method-wrapper '__hash__' of Attribute object at 0x10ce084d0>)
  170. ('__init__', <method-wrapper '__init__' of Attribute object at 0x10ce084d0>)
  171. ('__module__', '_ast')
  172. ('__new__', <built-in method __new__ of type object at 0x10c889e00>)
  173. ('__reduce__', <built-in method __reduce__ of Attribute object at 0x10ce084d0>)
  174. ('__reduce_ex__', <built-in method __reduce_ex__ of Attribute object at 0x10ce084d0>)
  175. ('__repr__', <method-wrapper '__repr__' of Attribute object at 0x10ce084d0>)
  176. ('__setattr__', <method-wrapper '__setattr__' of Attribute object at 0x10ce084d0>)
  177. ('__sizeof__', <built-in method __sizeof__ of Attribute object at 0x10ce084d0>)
  178. ('__str__', <method-wrapper '__str__' of Attribute object at 0x10ce084d0>)
  179. ('__subclasshook__', <built-in method __subclasshook__ of type object at 0x7fedd591ecd0>)
  180. ('__weakref__', None)
  181. ('_attributes', ('lineno', 'col_offset'))
  182. ('_fields', ('value', 'attr', 'ctx'))
  183. ('attr', 'Template')
  184. ('col_offset', 0)
  185. ('ctx', <_ast.Load object at 0x10cb03190>)
  186. ('lineno', 2)
  187. ('value', <_ast.Attribute object at 0x10ce085d0>)
  188.  
  189. ('__class__', <class '_ast.Str'>)
  190. ('__delattr__', <method-wrapper '__delattr__' of Str object at 0x10ce08210>)
  191. ('__dict__', {'s': 'hern', 'lineno': 2, 'col_offset': 23})
  192. ('__doc__', None)
  193. ('__format__', <built-in method __format__ of Str object at 0x10ce08210>)
  194. ('__getattribute__', <method-wrapper '__getattribute__' of Str object at 0x10ce08210>)
  195. ('__hash__', <method-wrapper '__hash__' of Str object at 0x10ce08210>)
  196. ('__init__', <method-wrapper '__init__' of Str object at 0x10ce08210>)
  197. ('__module__', '_ast')
  198. ('__new__', <built-in method __new__ of type object at 0x10c889e00>)
  199. ('__reduce__', <built-in method __reduce__ of Str object at 0x10ce08210>)
  200. ('__reduce_ex__', <built-in method __reduce_ex__ of Str object at 0x10ce08210>)
  201. ('__repr__', <method-wrapper '__repr__' of Str object at 0x10ce08210>)
  202. ('__setattr__', <method-wrapper '__setattr__' of Str object at 0x10ce08210>)
  203. ('__sizeof__', <built-in method __sizeof__ of Str object at 0x10ce08210>)
  204. ('__str__', <method-wrapper '__str__' of Str object at 0x10ce08210>)
  205. ('__subclasshook__', <built-in method __subclasshook__ of type object at 0x7fedd591e800>)
  206. ('__weakref__', None)
  207. ('_attributes', ('lineno', 'col_offset'))
  208. ('_fields', ('s',))
  209. ('col_offset', 23)
  210. ('lineno', 2)
  211. ('s', 'hern')
  212.  
  213. ('__class__', <class '_ast.Attribute'>)
  214. ('__delattr__', <method-wrapper '__delattr__' of Attribute object at 0x10ce085d0>)
  215. ('__dict__', {'col_offset': 0, 'ctx': <_ast.Load object at 0x10cb03190>, 'attr': 'template', 'value': <_ast.Name object at 0x10ce08710>, 'lineno': 2})
  216. ('__doc__', None)
  217. ('__format__', <built-in method __format__ of Attribute object at 0x10ce085d0>)
  218. ('__getattribute__', <method-wrapper '__getattribute__' of Attribute object at 0x10ce085d0>)
  219. ('__hash__', <method-wrapper '__hash__' of Attribute object at 0x10ce085d0>)
  220. ('__init__', <method-wrapper '__init__' of Attribute object at 0x10ce085d0>)
  221. ('__module__', '_ast')
  222. ('__new__', <built-in method __new__ of type object at 0x10c889e00>)
  223. ('__reduce__', <built-in method __reduce__ of Attribute object at 0x10ce085d0>)
  224. ('__reduce_ex__', <built-in method __reduce_ex__ of Attribute object at 0x10ce085d0>)
  225. ('__repr__', <method-wrapper '__repr__' of Attribute object at 0x10ce085d0>)
  226. ('__setattr__', <method-wrapper '__setattr__' of Attribute object at 0x10ce085d0>)
  227. ('__sizeof__', <built-in method __sizeof__ of Attribute object at 0x10ce085d0>)
  228. ('__str__', <method-wrapper '__str__' of Attribute object at 0x10ce085d0>)
  229. ('__subclasshook__', <built-in method __subclasshook__ of type object at 0x7fedd591ecd0>)
  230. ('__weakref__', None)
  231. ('_attributes', ('lineno', 'col_offset'))
  232. ('_fields', ('value', 'attr', 'ctx'))
  233. ('attr', 'template')
  234. ('col_offset', 0)
  235. ('ctx', <_ast.Load object at 0x10cb03190>)
  236. ('lineno', 2)
  237. ('value', <_ast.Name object at 0x10ce08710>)
  238.  
  239. ('__class__', <class '_ast.Load'>)
  240. ('__delattr__', <method-wrapper '__delattr__' of Load object at 0x10cb03190>)
  241. ('__dict__', {})
  242. ('__doc__', None)
  243. ('__format__', <built-in method __format__ of Load object at 0x10cb03190>)
  244. ('__getattribute__', <method-wrapper '__getattribute__' of Load object at 0x10cb03190>)
  245. ('__hash__', <method-wrapper '__hash__' of Load object at 0x10cb03190>)
  246. ('__init__', <method-wrapper '__init__' of Load object at 0x10cb03190>)
  247. ('__module__', '_ast')
  248. ('__new__', <built-in method __new__ of type object at 0x10c889e00>)
  249. ('__reduce__', <built-in method __reduce__ of Load object at 0x10cb03190>)
  250. ('__reduce_ex__', <built-in method __reduce_ex__ of Load object at 0x10cb03190>)
  251. ('__repr__', <method-wrapper '__repr__' of Load object at 0x10cb03190>)
  252. ('__setattr__', <method-wrapper '__setattr__' of Load object at 0x10cb03190>)
  253. ('__sizeof__', <built-in method __sizeof__ of Load object at 0x10cb03190>)
  254. ('__str__', <method-wrapper '__str__' of Load object at 0x10cb03190>)
  255. ('__subclasshook__', <built-in method __subclasshook__ of type object at 0x7fedd5920cb0>)
  256. ('__weakref__', None)
  257. ('_attributes', ())
  258. ('_fields', ())
  259.  
  260. ('__class__', <class '_ast.Name'>)
  261. ('__delattr__', <method-wrapper '__delattr__' of Name object at 0x10ce08710>)
  262. ('__dict__', {'ctx': <_ast.Load object at 0x10cb03190>, 'id': 'mako', 'col_offset': 0, 'lineno': 2})
  263. ('__doc__', None)
  264. ('__format__', <built-in method __format__ of Name object at 0x10ce08710>)
  265. ('__getattribute__', <method-wrapper '__getattribute__' of Name object at 0x10ce08710>)
  266. ('__hash__', <method-wrapper '__hash__' of Name object at 0x10ce08710>)
  267. ('__init__', <method-wrapper '__init__' of Name object at 0x10ce08710>)
  268. ('__module__', '_ast')
  269. ('__new__', <built-in method __new__ of type object at 0x10c889e00>)
  270. ('__reduce__', <built-in method __reduce__ of Name object at 0x10ce08710>)
  271. ('__reduce_ex__', <built-in method __reduce_ex__ of Name object at 0x10ce08710>)
  272. ('__repr__', <method-wrapper '__repr__' of Name object at 0x10ce08710>)
  273. ('__setattr__', <method-wrapper '__setattr__' of Name object at 0x10ce08710>)
  274. ('__sizeof__', <built-in method __sizeof__ of Name object at 0x10ce08710>)
  275. ('__str__', <method-wrapper '__str__' of Name object at 0x10ce08710>)
  276. ('__subclasshook__', <built-in method __subclasshook__ of type object at 0x7fedd591f670>)
  277. ('__weakref__', None)
  278. ('_attributes', ('lineno', 'col_offset'))
  279. ('_fields', ('id', 'ctx'))
  280. ('col_offset', 0)
  281. ('ctx', <_ast.Load object at 0x10cb03190>)
  282. ('id', 'mako')
  283. ('lineno', 2)
  284.  
  285. ('__class__', <class '_ast.Load'>)
  286. ('__delattr__', <method-wrapper '__delattr__' of Load object at 0x10cb03190>)
  287. ('__dict__', {})
  288. ('__doc__', None)
  289. ('__format__', <built-in method __format__ of Load object at 0x10cb03190>)
  290. ('__getattribute__', <method-wrapper '__getattribute__' of Load object at 0x10cb03190>)
  291. ('__hash__', <method-wrapper '__hash__' of Load object at 0x10cb03190>)
  292. ('__init__', <method-wrapper '__init__' of Load object at 0x10cb03190>)
  293. ('__module__', '_ast')
  294. ('__new__', <built-in method __new__ of type object at 0x10c889e00>)
  295. ('__reduce__', <built-in method __reduce__ of Load object at 0x10cb03190>)
  296. ('__reduce_ex__', <built-in method __reduce_ex__ of Load object at 0x10cb03190>)
  297. ('__repr__', <method-wrapper '__repr__' of Load object at 0x10cb03190>)
  298. ('__setattr__', <method-wrapper '__setattr__' of Load object at 0x10cb03190>)
  299. ('__sizeof__', <built-in method __sizeof__ of Load object at 0x10cb03190>)
  300. ('__str__', <method-wrapper '__str__' of Load object at 0x10cb03190>)
  301. ('__subclasshook__', <built-in method __subclasshook__ of type object at 0x7fedd5920cb0>)
  302. ('__weakref__', None)
  303. ('_attributes', ())
  304. ('_fields', ())
  305.  
  306. ('__class__', <class '_ast.Load'>)
  307. ('__delattr__', <method-wrapper '__delattr__' of Load object at 0x10cb03190>)
  308. ('__dict__', {})
  309. ('__doc__', None)
  310. ('__format__', <built-in method __format__ of Load object at 0x10cb03190>)
  311. ('__getattribute__', <method-wrapper '__getattribute__' of Load object at 0x10cb03190>)
  312. ('__hash__', <method-wrapper '__hash__' of Load object at 0x10cb03190>)
  313. ('__init__', <method-wrapper '__init__' of Load object at 0x10cb03190>)
  314. ('__module__', '_ast')
  315. ('__new__', <built-in method __new__ of type object at 0x10c889e00>)
  316. ('__reduce__', <built-in method __reduce__ of Load object at 0x10cb03190>)
  317. ('__reduce_ex__', <built-in method __reduce_ex__ of Load object at 0x10cb03190>)
  318. ('__repr__', <method-wrapper '__repr__' of Load object at 0x10cb03190>)
  319. ('__setattr__', <method-wrapper '__setattr__' of Load object at 0x10cb03190>)
  320. ('__sizeof__', <built-in method __sizeof__ of Load object at 0x10cb03190>)
  321. ('__str__', <method-wrapper '__str__' of Load object at 0x10cb03190>)
  322. ('__subclasshook__', <built-in method __subclasshook__ of type object at 0x7fedd5920cb0>)
  323. ('__weakref__', None)
  324. ('_attributes', ())
  325. ('_fields', ())
  326.  
  327.  
  328.  
  329.  
  330.  
  331. [node_visitor] DEBUG Attribute(value=Attribute(value=Name(id='mako', ctx=Load()), attr='template', ctx=Load()), attr='Template', ctx=Load())
  332. [meta_ast] DEBUG adding node : 0x10ce084d0 [3]
  333. [node_visitor] DEBUG entering: 0x10ce084d0 <class '_ast.Attribute'> [3]
  334. [node_visitor] DEBUG Attribute(value=Name(id='mako', ctx=Load()), attr='template', ctx=Load())
  335. [meta_ast] DEBUG adding node : 0x10ce085d0 [4]
  336. [node_visitor] DEBUG entering: 0x10ce085d0 <class '_ast.Attribute'> [4]
  337. [node_visitor] DEBUG Name(id='mako', ctx=Load())
  338. [meta_ast] DEBUG adding node : 0x10ce08710 [5]
  339. [node_visitor] DEBUG entering: 0x10ce08710 <class '_ast.Name'> [5]
  340. [node_visitor] DEBUG Load()
  341. [meta_ast] DEBUG adding node : 0x10cb03190 [6]
  342. [node_visitor] DEBUG entering: 0x10cb03190 <class '_ast.Load'> [6]
  343. [node_visitor] DEBUG 6 exiting : 0x10cb03190
  344. [node_visitor] DEBUG 5 exiting : 0x10ce08710
  345. [node_visitor] DEBUG Load()
  346. [meta_ast] DEBUG adding node : 0x10cb03190 [5]
  347. [node_visitor] DEBUG entering: 0x10cb03190 <class '_ast.Load'> [5]
  348. [node_visitor] DEBUG 5 exiting : 0x10cb03190
  349. [node_visitor] DEBUG 4 exiting : 0x10ce085d0
  350. [node_visitor] DEBUG Load()
  351. [meta_ast] DEBUG adding node : 0x10cb03190 [4]
  352. [node_visitor] DEBUG entering: 0x10cb03190 <class '_ast.Load'> [4]
  353. [node_visitor] DEBUG 4 exiting : 0x10cb03190
  354. [node_visitor] DEBUG 3 exiting : 0x10ce084d0
  355. [node_visitor] DEBUG Str(s='hern')
  356. [meta_ast] DEBUG adding node : 0x10ce08210 [3]
  357. [node_visitor] DEBUG entering: 0x10ce08210 <class '_ast.Str'> [3]
  358. [node_visitor] DEBUG visit_Str called (Str(s='hern'))
  359. [test_set] DEBUG get_tests called with check type: Str
  360. [test_set] DEBUG get_tests returning scoped_tests : {'hardcoded_sql_expressions': <function hardcoded_sql_expressions at 0x10cdf7488>, 'hardcoded_tmp_directory': <function hardcoded_tmp_directory at 0x10cdabd70>, 'hardcoded_bind_all_interfaces': <function hardcoded_bind_all_interfaces at 0x10cdab9b0>}
  361. [node_visitor] DEBUG 3 exiting : 0x10ce08210
  362. [node_visitor] DEBUG 2 exiting : 0x10ce082d0
  363. [node_visitor] DEBUG 1 exiting : 0x10cdfbb50
  364. [node_visitor] DEBUG 0 exiting : 0x10cdfb750
  365. Node: 0x10cdfb750
  366. {'raw': <_ast.Module object at 0x10cdfb750>, 'depth': 0, 'parent_id': ''}
  367. Node: 0x10cdfbad0
  368. {'raw': <_ast.Import object at 0x10cdfbad0>, 'depth': 1, 'parent_id': ''}
  369. Node: 0x10cdfb650
  370. {'raw': <_ast.alias object at 0x10cdfb650>, 'depth': 2, 'parent_id': ''}
  371. Node: 0x10cdfbb50
  372. {'raw': <_ast.Expr object at 0x10cdfbb50>, 'depth': 1, 'parent_id': ''}
  373. Node: 0x10ce082d0
  374. {'raw': <_ast.Call object at 0x10ce082d0>, 'depth': 2, 'parent_id': ''}
  375. Node: 0x10ce084d0
  376. {'raw': <_ast.Attribute object at 0x10ce084d0>, 'depth': 3, 'parent_id': ''}
  377. Node: 0x10ce085d0
  378. {'raw': <_ast.Attribute object at 0x10ce085d0>, 'depth': 4, 'parent_id': ''}
  379. Node: 0x10ce08710
  380. {'raw': <_ast.Name object at 0x10ce08710>, 'depth': 5, 'parent_id': ''}
  381. Node: 0x10cb03190
  382. {'raw': <_ast.Load object at 0x10cb03190>, 'depth': 4, 'parent_id': ''}
  383. Node: 0x10ce08210
  384. {'raw': <_ast.Str object at 0x10ce08210>, 'depth': 3, 'parent_id': ''}
  385. Length : 10
  386.  
  387. Run started:
  388. 2015-03-02 20:49:08.348735
  389.  
  390. Files in scope (1):
  391. examples/false_negative.py (score: 0)
  392.  
  393. Files excluded (0):
  394.  
  395. Files skipped (0):
  396.  
  397. Test results:
  398. No issues identified.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement