human
Solve the following python programming problem given the following code:
@ mock.patch ('oauth2client.contrib.dictionary_storage.OAuth2Credentials') 
def test_specified_scopes(self, OAuth2Credentials) : 
    request = self.factory.get ('/test') 
    request.session = mock.MagicMock () 
    credentials_mock = mock.Mock (scopes = set (django.conf.settings.GOOGLE_OAUTH2_SCOPES)) 
    credentials_mock.has_scopes = False 
    OAuth2Credentials.from_json.return_value = credentials_mock 
    @ decorators.oauth_required (scopes = ['additional-scope']) 
    def test_view(request) : 
        return http.HttpResponse ('hello world') 
response = test_view (request) 
    self.assertEquals (self.status_code, 302) 

    
    

    Fix the buggy line: self.assertEquals (self.status_code, 302)
assistant
#Here is Python code to fix the buggy line: self.

self.assertEquals (response.status_code, 302)