          )
          # However, an exception FieldDoesNotExist will be thrown if you specify
          # a nonexistent field name in values() (a field that is neither in the
          # model nor in extra(select)).
          with self.assertRaises(FieldError):
              Article.objects.extra(select={'id_plus_one': 'id + 1'}).values('id', 'id_plus_two')
          # If you don't specify field names to values(), all are returned.
          self.assertSequenceEqual(
              Article.objects.filter(id=self.a5.id).values(),
              [{
 
</s> remove         with self.assertRaises(ValueError):
 </s> add         msg = "The annotation 'age' conflicts with a field on the model."
        with self.assertRaisesMessage(ValueError, msg): </s> remove         with self.assertRaises(ValueError):
 </s> add         msg = "The annotation 'friends' conflicts with a field on the model."
        with self.assertRaisesMessage(ValueError, msg): </s> remove         with self.assertRaises(FieldError):
 </s> add         with self.assertRaisesMessage(FieldError, msg): </s> remove         with self.assertRaises(FieldError):
 </s> add         msg = 'Joined field references are not permitted in this query'
        with self.assertRaisesMessage(FieldError, msg): </s> remove         with self.assertRaises(AssertionError):
 </s> add         msg = (
            "earliest() and latest() require either a field_name parameter or "
            "'get_latest_by' in the model"
        )
        with self.assertRaisesMessage(AssertionError, msg):
        msg = (
            "Cannot resolve keyword 'id_plus_two' into field. Choices are: "
            "author, author_id, headline, id, id_plus_one, pub_date, slug, tag"
        )
        with self.assertRaisesMessage(FieldError, msg):
          )
          # However, an exception FieldDoesNotExist will be thrown if you specify
          # a nonexistent field name in values() (a field that is neither in the
          # model nor in extra(select)).
        msg = (
            "Cannot resolve keyword 'id_plus_two' into field. Choices are: "
            "author, author_id, headline, id, id_plus_one, pub_date, slug, tag"
        )
        with self.assertRaisesMessage(FieldError, msg):
              Article.objects.extra(select={'id_plus_one': 'id + 1'}).values('id', 'id_plus_two')
          # If you don't specify field names to values(), all are returned.
          self.assertSequenceEqual(
              Article.objects.filter(id=self.a5.id).values(),
              [{
keep keep keep keep replace keep keep keep keep keep
 Used assertRaisesMessage() to test Django's error messages. 
tests/lookup/tests.py