コード例 #1
0
    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))
コード例 #2
0
ファイル: html_renderer_test.py プロジェクト: ttomsu/citest
  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))