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

def test_django_logger(self):

    output = StringIO()
    self.logger.handlers[0].stream = output
    self.logger.error(u'Hey,    this    is    an    error.')
    self.assertEqual(output.getvalue(), u'')
    with self.settings(DEBUG=True):
        self.logger.error(u'Hey,    this    is    an    error.')
        self.assertEqual(output.getvalue(), u'Hey,    this    is    an    error.\n')
