def METHOD_NAME(self):
    test_journal = []
    Logger.add_ignored_code('foo')
    with self.assertRaises(FooError):
        Logger.error('foo', 'This foo is bad I have to care')
    test_journal.append(LogEntry(ERROR, 'bar', 'foo',
                                 'This foo is bad I have to care'))
    self.assertListEqual(Logger.journal, test_journal)