#NEWLINE# def test_not_allowed( self , connectors ) : #NEWLINE# #INDENT# ( response , _ ) = self . client . request ( '/api/simple/' , method = 'CONNECT' ) #NEWLINE# assert ( response . status == http . client . METHOD_NOT_ALLOWED )