'Verify that the static tab renders itself with the correct HTML'

def test_tab_preview_html(self):

    preview_url = '/xblock/{}/{}'.format(self.test_tab.location, STUDENT_VIEW)
    resp = self.client.get(preview_url, HTTP_ACCEPT='application/json')
    self.assertEqual(resp.status_code, 200)
    resp_content = json.loads(resp.content)
    html = resp_content['html']
    self.assertIn('<span    class="action-button-text">Edit</span>', html)
    self.assertIn('<span    class="sr">Duplicate    this    component</span>', html)
    self.assertIn('<span    class="sr">Delete    this    component</span>', html)
    self.assertIn('<span    data-tooltip="Drag    to    reorder"    class="drag-handle    action"></span>', html)
