#NEWLINE# def test_resource_None_scope_view_not_authorized( self ) : #NEWLINE# #INDENT# 'Tests that view created with @oauth_required decorator won\'t give access\n        when requested using token with scope!="all"\n        ' #NEWLINE# self . scope = Scope . objects . create ( name = 'some_new_scope' ) #NEWLINE# self . _request_token ( scope = self . scope . name ) #NEWLINE# self . _authorize_and_access_token_using_form ( ) #NEWLINE# response = self . _oauth_signed_get ( '/oauth/some/' ) #NEWLINE# self . assertEqual ( response . status_code , 401 )