@@ -0,0 +1,1477 @@
+from tests import PMGLiveServerTestCase%0Afrom tests.fixtures import dbfixture, HouseData, CommitteeData%0Afrom pmg.models import House%0Afrom pmg.views import utils%0A%0A%0Aclass TestProvincialLegislaturesPages(PMGLiveServerTestCase):%0A    def setUp(self):%0A        super(TestProvincialLegislaturesPages, self).setUp()%0A%0A        self.fx = dbfixture.data(HouseData, CommitteeData)%0A        self.fx.setup()%0A%0A    def tearDown(self):%0A        self.fx.teardown()%0A        super(TestProvincialLegislaturesPages, self).tearDown()%0A%0A    def test_provincial_legislatures_page(self):%0A        %22%22%22%0A        Test provincial legislatures page (/provincial-legislatures/)%0A        %22%22%22%0A        self.make_request(%0A            %22/provincial-legislatures/%22,%0A            follow_redirects=True,%0A        )%0A        self.assertIn(%22Provincial Legislatures%22, self.html)%0A        self.assertIn(self.fx.HouseData.western_cape.name, self.html)%0A%0A    def test_provincial_legislature_page_for_province(self):%0A        %22%22%22%0A        Test provincial legislatures page (/provincial-legislatures/%3Cprovince%3E)%0A        %22%22%22%0A        slug =  utils.slugify_province(self.fx.HouseData.western_cape.name)%0A        self.make_request(%0A            %22/provincial-legislatures/%25s%22 %25 slug,%0A            follow_redirects=True,%0A        )%0A        self.assertIn(%22Provincial Legislatures%22, self.html)%0A        self.assertIn(self.fx.HouseData.western_cape.name, self.html)%0A        self.assertIn(%22Committees%22, self.html)%0A        self.assertIn(%22Members%22, self.html)

Add test for provincial legislatures page