'Test that Open Responses is available only if course contains at least one ORA block'

def test_open_response_assessment_page(self):

    ora_section = '<li    class="nav-item"><button    type="button"    class="btn-link    open_response_assessment"    data-section="open_response_assessment">Open    Responses</button></li>'
    response = self.client.get(self.url)
    self.assertNotIn(ora_section, response.content)
    ItemFactory.create(parent_location=self.course.location, category='openassessment')
    response = self.client.get(self.url)
    self.assertIn(ora_section, response.content)
