def test_database_undefined(self):
        with self.assertRaises(DatabaseUndefined):
            validate_database(settings.DATABASES, settings.DEFAULT_DATABASE,
                              settings.DEBUG)