diff options
Diffstat (limited to 'docs/html/api/Cheetah.Tests.Regressions.html')
-rw-r--r-- | docs/html/api/Cheetah.Tests.Regressions.html | 222 |
1 files changed, 222 insertions, 0 deletions
diff --git a/docs/html/api/Cheetah.Tests.Regressions.html b/docs/html/api/Cheetah.Tests.Regressions.html new file mode 100644 index 0000000..fb8b761 --- /dev/null +++ b/docs/html/api/Cheetah.Tests.Regressions.html @@ -0,0 +1,222 @@ + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>Cheetah.Tests.Regressions module — Cheetah3 - The Python-Powered Template Engine</title> + <link rel="stylesheet" href="../_static/sphinxdoc.css" type="text/css" /> + <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> + <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script> + <script type="text/javascript" src="../_static/jquery.js"></script> + <script type="text/javascript" src="../_static/underscore.js"></script> + <script type="text/javascript" src="../_static/doctools.js"></script> + <script type="text/javascript" src="../_static/language_data.js"></script> + <link rel="index" title="Index" href="../genindex.html" /> + <link rel="search" title="Search" href="../search.html" /> + </head><body> + <div class="related" role="navigation" aria-label="related navigation"> + <h3>Navigation</h3> + <ul> + <li class="right" style="margin-right: 10px"> + <a href="../genindex.html" title="General Index" + accesskey="I">index</a></li> + <li class="right" > + <a href="../py-modindex.html" title="Python Module Index" + >modules</a> |</li> + <li class="nav-item nav-item-0"><a href="../index.html">Cheetah3 - The Python-Powered Template Engine</a> »</li> + </ul> + </div> + <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> + <div class="sphinxsidebarwrapper"> + <div role="note" aria-label="source link"> + <h3>This Page</h3> + <ul class="this-page-menu"> + <li><a href="../_sources/api/Cheetah.Tests.Regressions.rst.txt" + rel="nofollow">Show Source</a></li> + </ul> + </div> +<div id="searchbox" style="display: none" role="search"> + <h3>Quick search</h3> + <div class="searchformwrapper"> + <form class="search" action="../search.html" method="get"> + <input type="text" name="q" /> + <input type="submit" value="Go" /> + <input type="hidden" name="check_keywords" value="yes" /> + <input type="hidden" name="area" value="default" /> + </form> + </div> +</div> +<script type="text/javascript">$('#searchbox').show(0);</script> + </div> + </div> + + <div class="document"> + <div class="documentwrapper"> + <div class="bodywrapper"> + <div class="body" role="main"> + + <div class="section" id="module-Cheetah.Tests.Regressions"> +<span id="cheetah-tests-regressions-module"></span><h1>Cheetah.Tests.Regressions module<a class="headerlink" href="#module-Cheetah.Tests.Regressions" title="Permalink to this headline">¶</a></h1> +<dl class="class"> +<dt id="Cheetah.Tests.Regressions.CustomGetAttrClass"> +<em class="property">class </em><code class="descclassname">Cheetah.Tests.Regressions.</code><code class="descname">CustomGetAttrClass</code><a class="headerlink" href="#Cheetah.Tests.Regressions.CustomGetAttrClass" title="Permalink to this definition">¶</a></dt> +<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> +</dd></dl> + +<dl class="exception"> +<dt id="Cheetah.Tests.Regressions.GetAttrException"> +<em class="property">exception </em><code class="descclassname">Cheetah.Tests.Regressions.</code><code class="descname">GetAttrException</code><a class="headerlink" href="#Cheetah.Tests.Regressions.GetAttrException" title="Permalink to this definition">¶</a></dt> +<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">Exception</span></code></p> +</dd></dl> + +<dl class="class"> +<dt id="Cheetah.Tests.Regressions.GetAttrTest"> +<em class="property">class </em><code class="descclassname">Cheetah.Tests.Regressions.</code><code class="descname">GetAttrTest</code><span class="sig-paren">(</span><em>methodName='runTest'</em><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.GetAttrTest" title="Permalink to this definition">¶</a></dt> +<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p> +<p>Test for an issue occurring when __getatttr__() raises an exception +causing NameMapper to raise a NotFound exception</p> +<dl class="method"> +<dt id="Cheetah.Tests.Regressions.GetAttrTest.test_NotFoundException"> +<code class="descname">test_NotFoundException</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.GetAttrTest.test_NotFoundException" title="Permalink to this definition">¶</a></dt> +<dd></dd></dl> + +<dl class="method"> +<dt id="Cheetah.Tests.Regressions.GetAttrTest.test_ValidException"> +<code class="descname">test_ValidException</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.GetAttrTest.test_ValidException" title="Permalink to this definition">¶</a></dt> +<dd></dd></dl> + +</dd></dl> + +<dl class="class"> +<dt id="Cheetah.Tests.Regressions.InlineImportTest"> +<em class="property">class </em><code class="descclassname">Cheetah.Tests.Regressions.</code><code class="descname">InlineImportTest</code><span class="sig-paren">(</span><em>methodName='runTest'</em><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.InlineImportTest" title="Permalink to this definition">¶</a></dt> +<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p> +<dl class="method"> +<dt id="Cheetah.Tests.Regressions.InlineImportTest.test_AutoImporting"> +<code class="descname">test_AutoImporting</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.InlineImportTest.test_AutoImporting" title="Permalink to this definition">¶</a></dt> +<dd></dd></dl> + +<dl class="method"> +<dt id="Cheetah.Tests.Regressions.InlineImportTest.test_FromFooImportThing"> +<code class="descname">test_FromFooImportThing</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.InlineImportTest.test_FromFooImportThing" title="Permalink to this definition">¶</a></dt> +<dd><dl class="docutils"> +<dt>Verify that a bug introduced in v2.1.0 where an inline:</dt> +<dd>#from module import class</dd> +<dt>would result in the following code being generated:</dt> +<dd>import class</dd> +</dl> +</dd></dl> + +<dl class="method"> +<dt id="Cheetah.Tests.Regressions.InlineImportTest.test_ImportFailModule"> +<code class="descname">test_ImportFailModule</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.InlineImportTest.test_ImportFailModule" title="Permalink to this definition">¶</a></dt> +<dd></dd></dl> + +<dl class="method"> +<dt id="Cheetah.Tests.Regressions.InlineImportTest.test_ProperImportOfBadModule"> +<code class="descname">test_ProperImportOfBadModule</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.InlineImportTest.test_ProperImportOfBadModule" title="Permalink to this definition">¶</a></dt> +<dd></dd></dl> + +<dl class="method"> +<dt id="Cheetah.Tests.Regressions.InlineImportTest.test_StuffBeforeImport_Legacy"> +<code class="descname">test_StuffBeforeImport_Legacy</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.InlineImportTest.test_StuffBeforeImport_Legacy" title="Permalink to this definition">¶</a></dt> +<dd></dd></dl> + +</dd></dl> + +<dl class="class"> +<dt id="Cheetah.Tests.Regressions.Mantis_Issue_11_Regression_Test"> +<em class="property">class </em><code class="descclassname">Cheetah.Tests.Regressions.</code><code class="descname">Mantis_Issue_11_Regression_Test</code><span class="sig-paren">(</span><em>methodName='runTest'</em><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.Mantis_Issue_11_Regression_Test" title="Permalink to this definition">¶</a></dt> +<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p> +<p>Test case for bug outlined in Mantis issue #11:</p> +<p>Output: +Traceback (most recent call last):</p> +<blockquote> +<div><dl class="docutils"> +<dt>File “test.py”, line 12, in <module></dt> +<dd>t.respond()</dd> +</dl> +<p>File “DynamicallyCompiledCheetahTemplate.py”, line 86, in respond +File “/usr/lib64/python2.6/cgi.py”, line 1035, in escape</p> +<blockquote> +<div>s = s.replace(“&”, “&”) # Must be done first!</div></blockquote> +</div></blockquote> +<dl class="method"> +<dt id="Cheetah.Tests.Regressions.Mantis_Issue_11_Regression_Test.test_FailingBehavior"> +<code class="descname">test_FailingBehavior</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.Mantis_Issue_11_Regression_Test.test_FailingBehavior" title="Permalink to this definition">¶</a></dt> +<dd></dd></dl> + +<dl class="method"> +<dt id="Cheetah.Tests.Regressions.Mantis_Issue_11_Regression_Test.test_FailingBehaviorWithSetting"> +<code class="descname">test_FailingBehaviorWithSetting</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.Mantis_Issue_11_Regression_Test.test_FailingBehaviorWithSetting" title="Permalink to this definition">¶</a></dt> +<dd></dd></dl> + +</dd></dl> + +<dl class="class"> +<dt id="Cheetah.Tests.Regressions.Mantis_Issue_21_Regression_Test"> +<em class="property">class </em><code class="descclassname">Cheetah.Tests.Regressions.</code><code class="descname">Mantis_Issue_21_Regression_Test</code><span class="sig-paren">(</span><em>methodName='runTest'</em><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.Mantis_Issue_21_Regression_Test" title="Permalink to this definition">¶</a></dt> +<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p> +<p>Test case for bug outlined in issue #21</p> +<p>Effectively @staticmethod and @classmethod +decorated methods in templates don’t +properly define the _filter local, which breaks +when using the NameMapper</p> +<dl class="method"> +<dt id="Cheetah.Tests.Regressions.Mantis_Issue_21_Regression_Test.runTest"> +<code class="descname">runTest</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.Mantis_Issue_21_Regression_Test.runTest" title="Permalink to this definition">¶</a></dt> +<dd></dd></dl> + +</dd></dl> + +<dl class="class"> +<dt id="Cheetah.Tests.Regressions.Mantis_Issue_22_Regression_Test"> +<em class="property">class </em><code class="descclassname">Cheetah.Tests.Regressions.</code><code class="descname">Mantis_Issue_22_Regression_Test</code><span class="sig-paren">(</span><em>methodName='runTest'</em><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.Mantis_Issue_22_Regression_Test" title="Permalink to this definition">¶</a></dt> +<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p> +<p>Test case for bug outlined in issue #22</p> +<p>When using @staticmethod and @classmethod +in conjunction with the #filter directive +the generated code for the #filter is reliant +on the <cite>self</cite> local, breaking the function</p> +<dl class="method"> +<dt id="Cheetah.Tests.Regressions.Mantis_Issue_22_Regression_Test.test_DefinedFilter"> +<code class="descname">test_DefinedFilter</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.Mantis_Issue_22_Regression_Test.test_DefinedFilter" title="Permalink to this definition">¶</a></dt> +<dd></dd></dl> + +<dl class="method"> +<dt id="Cheetah.Tests.Regressions.Mantis_Issue_22_Regression_Test.test_NoneFilter"> +<code class="descname">test_NoneFilter</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#Cheetah.Tests.Regressions.Mantis_Issue_22_Regression_Test.test_NoneFilter" title="Permalink to this definition">¶</a></dt> +<dd></dd></dl> + +</dd></dl> + +</div> + + + </div> + </div> + </div> + <div class="clearer"></div> + </div> + <div class="related" role="navigation" aria-label="related navigation"> + <h3>Navigation</h3> + <ul> + <li class="right" style="margin-right: 10px"> + <a href="../genindex.html" title="General Index" + >index</a></li> + <li class="right" > + <a href="../py-modindex.html" title="Python Module Index" + >modules</a> |</li> + <li class="nav-item nav-item-0"><a href="../index.html">Cheetah3 - The Python-Powered Template Engine</a> »</li> + </ul> + </div> + <div class="footer" role="contentinfo"> + © Copyright 2017-2018, Oleg Broytman; 2009-2012, R. Tyler Croy; 2001-2008, The Cheetah Development Team.. + Last updated on Mar 19, 2019. + Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.8.5. + </div> + </body> +</html>
\ No newline at end of file |