title: How do I test if a certain log message is logged in a Django test case?
body: <p>I want to ensure that a certain condition in my code causes a log message to be written to the django log. How would I do this with the Django unit testing framework?</p>
  
  <p>Is there a place where I can check logged messages, similarly to how I can check sent emails? My unit test extends <code>django.test.TestCase</code>.</p>