'The \'django\' base logger only output anything when DEBUG=True.'

def test_django_logger(self):

    self.logger.error('Hey,    this    is    an    error.')
    self.assertEqual(self.logger_output.getvalue(), '')
    with self.settings(DEBUG=True):
        self.logger.error('Hey,    this    is    an    error.')
        self.assertEqual(self.logger_output.getvalue(), 'Hey,    this    is    an    error.\n')
