#NEWLINE# def test_bad_file( self ) : #NEWLINE# #INDENT# errors = py_find_injection . check ( os . path . join ( SAMPLE_PATH , 'bad_script.py' ) ) #NEWLINE# self . assertEqual ( 1 , len ( errors ) ) #NEWLINE# self . assertEqual ( errors [ 0 ] . lineno , 6 ) #NEWLINE# self . assertEqual ( errors [ 0 ] . reason , 'string interpolation of SQL query' )