              return Response({})
  
          request = self.factory.put('/')
          response = view(request)
          self.assertEqual(response.status_code, 200)
  
          request = self.factory.post('/')
          response = view(request)
          self.assertEqual(response.status_code, 405)
  
 
</s> remove         self.assertEqual(response.status_code, 200)
 </s> add         self.assertEqual(response.status_code, status.HTTP_200_OK) </s> remove         self.assertEqual(response.status_code, 200)
 </s> add         self.assertEqual(response.status_code, status.HTTP_200_OK) </s> remove         self.assertEqual(response.status_code, 405)
 </s> add         self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) </s> remove         self.assertEqual(response.status_code, 405)
 </s> add         self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED) </s> remove         self.assertEqual(response.status_code, 405)
 </s> add         self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED)
        self.assertEqual(response.status_code, status.HTTP_200_OK)
              return Response({})
  
          request = self.factory.put('/')
          response = view(request)
        self.assertEqual(response.status_code, status.HTTP_200_OK)
  
          request = self.factory.post('/')
          response = view(request)
          self.assertEqual(response.status_code, 405)
  
keep keep keep keep replace keep keep keep keep keep
 Replaced status numbers with the statuses constants from the status model. 
rest_framework/tests/decorators.py