'Test that a CommandError is raised with DEBUG being False as well as
True, as otherwise errors in configuration will never show in
production.'

def _test_offline(self, engine):

    with self.settings(DEBUG=True):
        self.assertRaises(CommandError, CompressCommand().compress, engine=engine)
    with self.settings(DEBUG=False):
        self.assertRaises(CommandError, CompressCommand().compress, engine=engine)
