          request = factory.delete('/')
          with self.assertNumQueries(0):
              response = self.view(request).render()
          self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED)
          self.assertEqual(response.data, {"detail": "Method 'DELETE' not allowed."})
  
      def test_post_cannot_set_id(self):
          """
          POST requests to create a new object should not be able to set the id.
          """
 
</s> remove         self.assertEqual(response.data, {"detail": "Method 'PUT' not allowed."})
 </s> add         self.assertEqual(response.data, {"detail": 'Method "PUT" not allowed.'}) </s> remove         self.assertEqual(response.data, {"detail": "Method 'POST' not allowed."})
 </s> add         self.assertEqual(response.data, {"detail": 'Method "POST" not allowed.'}) </s> remove     message = _("The fields {field_names} must make a unique set.")
    missing_message = _("This field is required.")
 </s> add     message = _('The fields {field_names} must make a unique set.')
    missing_message = _('This field is required.') </s> remove     message = _("This field must be unique.")
 </s> add     message = _('This field must be unique.') </s> remove     default_detail = _("Could not satisfy the request Accept header.")
 </s> add     default_detail = _('Could not satisfy the request Accept header.')
        self.assertEqual(response.data, {"detail": 'Method "DELETE" not allowed.'})
          request = factory.delete('/')
          with self.assertNumQueries(0):
              response = self.view(request).render()
          self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED)
        self.assertEqual(response.data, {"detail": 'Method "DELETE" not allowed.'})
  
      def test_post_cannot_set_id(self):
          """
          POST requests to create a new object should not be able to set the id.
          """
keep keep keep keep replace keep keep keep keep keep
 prefer single quotes in source and double quotes in user visible strings; add some missing full stops to user visible strings 
tests/test_generics.py