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. tag = manager.make_expandable_control_tag('SID', 'TEST') self.assertEqual( '<a class="toggle" onclick="toggle_inline(\'SID\');">TEST</a>', str(tag))
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. tag = manager.make_expandable_control_tag('SID', 'TEST') self.assertEqual( '<a class="toggle" onclick="toggle_inline(\'SID\');">TEST</a>', str(tag))