#NEWLINE# def test_quote_js( self ) : #NEWLINE# #INDENT# bad_chars = '\n\r\'"<>&' #NEWLINE# quoted = quote_js ( '\\\n\r\'"<>&' ) #NEWLINE# for char in quoted : #NEWLINE# #INDENT# self . assertNotIn ( char , quoted )