          self.assertIsNone(value)
  
      def test_uuidfield_3(self):
          field = UUIDField()
          with self.assertRaises(ValidationError) as cm:
              field.clean('550e8400')
          self.assertEqual(cm.exception.messages[0], 'Enter a valid UUID.')
  
      def test_uuidfield_4(self):
          field = UUIDField()
 
</s> remove         self.assertEqual(cm.exception.messages[0], 'Enter a valid UUID.')
 </s> add  </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(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 = 'Cannot update a query once a slice has been taken.'
        with self.assertRaisesMessage(AssertionError, msg): </s> remove         with self.assertRaises(ValueError):
 </s> add         msg = "The annotation 'book_contact_set' conflicts with a field on the model."
        with self.assertRaisesMessage(ValueError, msg):
        with self.assertRaisesMessage(ValidationError, 'Enter a valid UUID.'):
          self.assertIsNone(value)
  
      def test_uuidfield_3(self):
          field = UUIDField()
        with self.assertRaisesMessage(ValidationError, 'Enter a valid UUID.'):
              field.clean('550e8400')
          self.assertEqual(cm.exception.messages[0], 'Enter a valid UUID.')
  
      def test_uuidfield_4(self):
          field = UUIDField()
keep keep keep keep replace keep keep keep keep keep
 Used assertRaisesMessage() to test Django's error messages. 
tests/forms_tests/field_tests/test_uuidfield.py