import unittest
import doctest
from . import views

from django.test import TestCase

from nose.plugins.attrib import attr

# Needed to run the doc tests in views.py

def suite():
    suite = unittest.TestSuite()
    suite.addTest(doctest.DocTestSuite(views))
    return suite

@attr(country='nigeria')
class HomeViewTest(TestCase):

    def test_homepage_context(self):
        response = self.client.get('/')
        self.assertIn('featured_person', response.context)
        self.assertIn('featured_persons', response.context)
        self.assertIn('editable_content', response.context)

@@ -117,16 +117,58 @@
 t attr%0A%0A
+from pombola.info.models import InfoPage%0A%0A
 # Needed
@@ -605,28 +605,515 @@
 content', response.context)%0A
+%0A@attr(country='nigeria')%0Aclass InfoBlogListTest(TestCase):%0A%0A    def setUp(self):%0A        self.info_page = InfoPage.objects.create(%0A            slug='escaping-test',%0A            kind='blog',%0A            title='Escaping Test', markdown_content=%22%5CnTesting%5Cn%5Cn**Escaped**%5Cn%5CnContent%22%0A        )%0A%0A    def tearDown(self):%0A        self.info_page.delete()%0A%0A    def test_html_not_escaped(self):%0A        response = self.client.get('/blog/')%0A        self.assertNotIn('&lt;p&gt;', response.content)%0A

Add a regression test for displaying escaped HTML in the blog