              self.assertEqual(bytes(dm.short_data), b'\x08')
  
      def test_max_length(self):
          dm = DataModel(short_data=self.binary_data * 4)
          self.assertRaises(ValidationError, dm.full_clean)
  
  
  class GenericIPAddressFieldTests(test.TestCase):
      def test_genericipaddressfield_formfield_protocol(self):
          """
 
</s> remove         self.assertRaises(ValidationError, again.validate_unique)
 </s> add         with self.assertRaises(ValidationError):
            again.validate_unique() </s> remove         self.assertRaises(ValidationError, f.clean, "", None)
 </s> add         with self.assertRaises(ValidationError):
            f.clean("", None) </s> remove         self.assertRaises(ValidationError, form_field.clean, '127.0.0.1')
 </s> add         with self.assertRaises(ValidationError):
            form_field.clean('127.0.0.1') </s> remove         self.assertRaises(ValidationError, f.clean, '0', None)
 </s> add         with self.assertRaises(ValidationError):
            f.clean('0', None) </s> remove         self.assertRaises(TypeError, build_abc)
 </s> add         with self.assertRaises(TypeError):
            build_abc()
        with self.assertRaises(ValidationError):
            dm.full_clean()
              self.assertEqual(bytes(dm.short_data), b'\x08')
  
      def test_max_length(self):
          dm = DataModel(short_data=self.binary_data * 4)
        with self.assertRaises(ValidationError):
            dm.full_clean()
  
  
  class GenericIPAddressFieldTests(test.TestCase):
      def test_genericipaddressfield_formfield_protocol(self):
          """
keep keep keep keep replace keep keep keep keep keep
 Refs #26022 -- Used context manager version of assertRaises in tests. 
tests/model_fields/tests.py