          does not allow zero for automatic primary key.
          """
          valid_country = Country(name='Germany', iso_two_letter='DE')
          invalid_country = Country(id=0, name='Poland', iso_two_letter='PL')
          with self.assertRaises(ValueError):
              Country.objects.bulk_create([valid_country, invalid_country])
  
      def test_batch_same_vals(self):
          # Sqlite had a problem where all the same-valued models were
          # collapsed to one insert.
 
</s> remove         with self.assertRaises(ValueError):
 </s> add         msg = 'Trying to compare non-ordered queryset against more than one ordered values'
        with self.assertRaisesMessage(ValueError, msg): </s> remove         with self.assertRaises(ValueError):
 </s> add         msg = 'Cannot force an update in save() with no primary key.'
        with self.assertRaisesMessage(ValueError, msg): </s> remove         with self.assertRaises(ValueError):
 </s> add         msg = 'backend does not support timezone-aware datetimes when USE_TZ is False.'
        with self.assertRaisesMessage(ValueError, msg): </s> remove         with self.assertRaises(ImproperlyConfigured):
 </s> add         msg = 'The model Location is abstract, so it cannot be registered with admin.'
        with self.assertRaisesMessage(ImproperlyConfigured, msg): </s> remove         with self.assertRaises(ValueError):
 </s> add         msg = 'Cannot force both insert and updating in model saving.'
        with self.assertRaisesMessage(ValueError, msg):
        msg = 'The database backend does not accept 0 as a value for AutoField.'
        with self.assertRaisesMessage(ValueError, msg):
          does not allow zero for automatic primary key.
          """
          valid_country = Country(name='Germany', iso_two_letter='DE')
          invalid_country = Country(id=0, name='Poland', iso_two_letter='PL')
        msg = 'The database backend does not accept 0 as a value for AutoField.'
        with self.assertRaisesMessage(ValueError, msg):
              Country.objects.bulk_create([valid_country, invalid_country])
  
      def test_batch_same_vals(self):
          # Sqlite had a problem where all the same-valued models were
          # collapsed to one insert.
keep keep keep keep replace keep keep keep keep keep
 Used assertRaisesMessage() to test Django's error messages. 
tests/bulk_create/tests.py