#NEWLINE# def test_badload( self ) : #NEWLINE# #INDENT# '\n        Test a variety of bad requests, make sure that we get some sort of error\n        ' #NEWLINE# msgs = [ '' , [ ] , tuple ( ) ] #NEWLINE# for msg in msgs : #NEWLINE# #INDENT# with self . assertRaises ( salt . exceptions . AuthenticationError ) : #NEWLINE# #INDENT# ret = self . channel . send ( msg , timeout = 1 )