              # Cleanup model states
              BookWithM2M._meta.local_many_to_many.remove(new_field)
              del BookWithM2M._meta._m2m_cache
  
      @unittest.skipUnless(connection.features.supports_check_constraints, "No check constraints")
      def test_check_constraints(self):
          """
          Tests creating/deleting CHECK constraints
          """
          # Create the tables
 
</s> remove     supports_check_constraints = False
 </s> add     supports_column_check_constraints = False </s> remove     supports_check_constraints = False
 </s> add     supports_column_check_constraints = False </s> remove     supports_check_constraints = True
 </s> add     supports_column_check_constraints = True
    @unittest.skipUnless(connection.features.supports_column_check_constraints, "No check constraints")
              # Cleanup model states
              BookWithM2M._meta.local_many_to_many.remove(new_field)
              del BookWithM2M._meta._m2m_cache
  
    @unittest.skipUnless(connection.features.supports_column_check_constraints, "No check constraints")
      def test_check_constraints(self):
          """
          Tests creating/deleting CHECK constraints
          """
          # Create the tables
keep keep keep keep replace keep keep keep keep keep
 Renamed DatabaseFeature.supports_check_constraints to supports_column_check_constraints.

Thanks maxi for the suggestion. 
tests/schema/tests.py