Esempio n. 1
0
 def test_get_events_should_write_to_cache(self):
     self.patch("app.util.event_log.TaggingLogger")
     event_log = EventLog(filename="my_fake_eventlog.log")
     event_log.record_event("my_tag", message="foo")
     event = event_log._log_cache[0]
     self.assertEqual(event["message"], "foo")
 def test_get_events_should_write_to_cache(self):
     self.patch('app.util.event_log.TaggingLogger')
     event_log = EventLog(filename='my_fake_eventlog.log')
     event_log.record_event('my_tag', message='foo')
     event = event_log._log_cache[0]
     self.assertEqual(event['message'], 'foo')