#NEWLINE# def test_allow_task_reservation_updates( self ) : #NEWLINE# #INDENT# self . cap . allow_task_reservation_updates ( ) #NEWLINE# token = self . cap . generate_token ( ) #NEWLINE# decoded = jwt . decode ( token , self . auth_token ) #NEWLINE# self . assertTrue ( ( decoded is not None ) ) #NEWLINE# url = 'https://taskrouter.twilio.com/v1/Workspaces/{0}/Tasks/**' . format ( self . workspace_sid ) #NEWLINE# expected = { #NEWLINE# #INDENT# 'url' : url , #NEWLINE# 'method' : 'POST' , #NEWLINE# 'allow' : True , #NEWLINE# 'query_filter' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# 'post_filter' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( self , decoded [ 'policies' ] [ ( - 1 ) ] )