def test_expandable_control(self): """Test the production of HTML controller for show/hide.""" manager = HtmlDocumentManager('test_json') # Test block both as being initially expanded then not. html = manager.make_expandable_control_for_section_id('SID', 'TEST') self.assertEqual( '<a class="toggle" onclick="toggle_inline(\'SID\');">TEST</a>', html)
def test_expandable_control(self): """Test the production of HTML controller for show/hide.""" manager = HtmlDocumentManager('test_json') # Test block both as being initially expanded then not. html = manager.make_expandable_control_for_section_id('SID', 'TEST') self.assertEqual( '<a class="toggle" onclick="toggle_inline(\'SID\');">TEST</a>', html)