1. from django.db import connection
    
  2. from django.test import SimpleTestCase
    
  3. 
    
  4. 
    
  5. class TestDatabaseFeatures(SimpleTestCase):
    
  6.     def test_nonexistent_feature(self):
    
  7.         self.assertFalse(hasattr(connection.features, "nonexistent"))