#NEWLINE# def test_channel_request_bad_token( self ) : #NEWLINE# #INDENT# 'Test a channel request with an invalid token.' #NEWLINE# environ = _build_poll_environ ( 'bad' ) #NEWLINE# expected_headers = { #NEWLINE# #INDENT# 'Cache-Control' : 'no-cache' , #NEWLINE# 'Content-Length' : '0' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertResponse ( '401 Invalid+token.' , expected_headers , '' , channel . application , expected_headers )