def METHOD_NAME(self):
    filename = os.path.join(os.path.dirname(__file__), 'data', 'test.xml')
    with self.assertRaisesRegex(CommandError, 'DEM format is not recognized by GDAL.'):
        call_command('loaddem', filename, verbosity=0)