'Check that requirements are displayed on the page.'

def _assert_requirements_displayed(self, response, requirements):

    response_dict = self._get_page_data(response)
    for (req, displayed) in response_dict['requirements'].iteritems():
        if (req in requirements):
            self.assertTrue(displayed, msg="Expected    '{req}'    requirement    to    be    displayed".format(req=req))
        else:
            self.assertFalse(displayed, msg="Expected    '{req}'    requirement    to    be    hidden".format(req=req))
