~ubuntu-branches/ubuntu/raring/ipython/raring

« back to all changes in this revision

Viewing changes to docs/dist/html/api/generated/IPython.testing.plugin.simple.html

  • Committer: Package Import Robot
  • Author(s): Julian Taylor
  • Date: 2011-11-22 23:40:57 UTC
  • mfrom: (6.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20111122234057-ta86ocdahnhwmnd8
Tags: 0.11-2
* upload to unstable
* add patch fix-version-checks-for-pyzmq-2.1.10.patch
* fix debianize-error-messages.patch to reraise unknown exceptions
* suggest python-zmq for ipython package
* use dh_sphinxdoc
  - bump sphinx dependency to >= 1.0.7+dfsg-1~, replace libjs-jquery
    dependency with ${sphinxdoc:Depends} and drop ipython-doc.links
* remove empty directory from ipython
* link duplicate images in ipython-doc
* remove obsolete Conflicts and Replaces

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
 
3
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
 
 
6
 
 
7
 
<html xmlns="http://www.w3.org/1999/xhtml">
8
 
  <head>
9
 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10
 
    
11
 
    <title>testing.plugin.simple &mdash; IPython 0.10.2 documentation</title>
12
 
    
13
 
    <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
14
 
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
15
 
    
16
 
    <script type="text/javascript">
17
 
      var DOCUMENTATION_OPTIONS = {
18
 
        URL_ROOT:    '../../',
19
 
        VERSION:     '0.10.2',
20
 
        COLLAPSE_INDEX: false,
21
 
        FILE_SUFFIX: '.html',
22
 
        HAS_SOURCE:  true
23
 
      };
24
 
    </script>
25
 
    <script type="text/javascript" src="../../_static/jquery.js"></script>
26
 
    <script type="text/javascript" src="../../_static/underscore.js"></script>
27
 
    <script type="text/javascript" src="../../_static/doctools.js"></script>
28
 
    <link rel="top" title="IPython 0.10.2 documentation" href="../../index.html" />
29
 
    <link rel="up" title="The IPython API" href="../index.html" />
30
 
    <link rel="next" title="testing.plugin.test_ipdoctest" href="IPython.testing.plugin.test_ipdoctest.html" />
31
 
    <link rel="prev" title="testing.plugin.show_refs" href="IPython.testing.plugin.show_refs.html" /> 
32
 
  </head>
33
 
  <body>
34
 
    <div class="related">
35
 
      <h3>Navigation</h3>
36
 
      <ul>
37
 
        <li class="right" style="margin-right: 10px">
38
 
          <a href="../../genindex.html" title="General Index"
39
 
             accesskey="I">index</a></li>
40
 
        <li class="right" >
41
 
          <a href="../../py-modindex.html" title="Python Module Index"
42
 
             >modules</a> |</li>
43
 
        <li class="right" >
44
 
          <a href="IPython.testing.plugin.test_ipdoctest.html" title="testing.plugin.test_ipdoctest"
45
 
             accesskey="N">next</a> |</li>
46
 
        <li class="right" >
47
 
          <a href="IPython.testing.plugin.show_refs.html" title="testing.plugin.show_refs"
48
 
             accesskey="P">previous</a> |</li>
49
 
        <li><a href="../../index.html">IPython 0.10.2 documentation</a> &raquo;</li>
50
 
          <li><a href="../index.html" accesskey="U">The IPython API</a> &raquo;</li> 
51
 
      </ul>
52
 
    </div>  
53
 
 
54
 
    <div class="document">
55
 
      <div class="documentwrapper">
56
 
        <div class="bodywrapper">
57
 
          <div class="body">
58
 
            
59
 
  <div class="section" id="testing-plugin-simple">
60
 
<h1>testing.plugin.simple<a class="headerlink" href="#testing-plugin-simple" title="Permalink to this headline">¶</a></h1>
61
 
<div class="section" id="module-IPython.testing.plugin.simple">
62
 
<span id="module-testing-plugin-simple"></span><h2>Module: <tt class="xref py py-mod docutils literal"><span class="pre">testing.plugin.simple</span></tt><a class="headerlink" href="#module-IPython.testing.plugin.simple" title="Permalink to this headline">¶</a></h2>
63
 
<p>Simple example using doctests.</p>
64
 
<p>This file just contains doctests both using plain python and IPython prompts.
65
 
All tests should be loaded by nose.</p>
66
 
</div>
67
 
<div class="section" id="functions">
68
 
<h2>Functions<a class="headerlink" href="#functions" title="Permalink to this headline">¶</a></h2>
69
 
<dl class="function">
70
 
<dt id="IPython.testing.plugin.simple.ipyfunc2">
71
 
<tt class="descclassname">IPython.testing.plugin.simple.</tt><tt class="descname">ipyfunc2</tt><big>(</big><big>)</big><a class="headerlink" href="#IPython.testing.plugin.simple.ipyfunc2" title="Permalink to this definition">¶</a></dt>
72
 
<dd><p>Some pure python tests...</p>
73
 
<div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="mi">1</span><span class="o">+</span><span class="mi">1</span>
74
 
<span class="go">2</span>
75
 
</pre></div>
76
 
</div>
77
 
</dd></dl>
78
 
 
79
 
<dl class="function">
80
 
<dt id="IPython.testing.plugin.simple.pyfunc">
81
 
<tt class="descclassname">IPython.testing.plugin.simple.</tt><tt class="descname">pyfunc</tt><big>(</big><big>)</big><a class="headerlink" href="#IPython.testing.plugin.simple.pyfunc" title="Permalink to this definition">¶</a></dt>
82
 
<dd><p>Some pure python tests...</p>
83
 
<div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">pyfunc</span><span class="p">()</span>
84
 
<span class="go">&#39;pyfunc&#39;</span>
85
 
</pre></div>
86
 
</div>
87
 
<div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">os</span>
88
 
</pre></div>
89
 
</div>
90
 
<div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="mi">2</span><span class="o">+</span><span class="mi">3</span>
91
 
<span class="go">5</span>
92
 
</pre></div>
93
 
</div>
94
 
<div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">3</span><span class="p">):</span>
95
 
<span class="gp">... </span>    <span class="k">print</span> <span class="n">i</span><span class="p">,</span>
96
 
<span class="gp">... </span>    <span class="k">print</span> <span class="n">i</span><span class="o">+</span><span class="mi">1</span><span class="p">,</span>
97
 
<span class="gp">...</span>
98
 
<span class="go">0 1 1 2 2 3</span>
99
 
</pre></div>
100
 
</div>
101
 
</dd></dl>
102
 
 
103
 
</div>
104
 
</div>
105
 
 
106
 
 
107
 
          </div>
108
 
        </div>
109
 
      </div>
110
 
      <div class="sphinxsidebar">
111
 
        <div class="sphinxsidebarwrapper">
112
 
  <h3><a href="../../index.html">Table Of Contents</a></h3>
113
 
  <ul>
114
 
<li><a class="reference internal" href="#">testing.plugin.simple</a><ul>
115
 
<li><a class="reference internal" href="#module-IPython.testing.plugin.simple">Module: <tt class="docutils literal"><span class="pre">testing.plugin.simple</span></tt></a></li>
116
 
<li><a class="reference internal" href="#functions">Functions</a></li>
117
 
</ul>
118
 
</li>
119
 
</ul>
120
 
 
121
 
  <h4>Previous topic</h4>
122
 
  <p class="topless"><a href="IPython.testing.plugin.show_refs.html"
123
 
                        title="previous chapter">testing.plugin.show_refs</a></p>
124
 
  <h4>Next topic</h4>
125
 
  <p class="topless"><a href="IPython.testing.plugin.test_ipdoctest.html"
126
 
                        title="next chapter">testing.plugin.test_ipdoctest</a></p>
127
 
  <h3>This Page</h3>
128
 
  <ul class="this-page-menu">
129
 
    <li><a href="../../_sources/api/generated/IPython.testing.plugin.simple.txt"
130
 
           rel="nofollow">Show Source</a></li>
131
 
  </ul>
132
 
<div id="searchbox" style="display: none">
133
 
  <h3>Quick search</h3>
134
 
    <form class="search" action="../../search.html" method="get">
135
 
      <input type="text" name="q" size="18" />
136
 
      <input type="submit" value="Go" />
137
 
      <input type="hidden" name="check_keywords" value="yes" />
138
 
      <input type="hidden" name="area" value="default" />
139
 
    </form>
140
 
    <p class="searchtip" style="font-size: 90%">
141
 
    Enter search terms or a module, class or function name.
142
 
    </p>
143
 
</div>
144
 
<script type="text/javascript">$('#searchbox').show(0);</script>
145
 
        </div>
146
 
      </div>
147
 
      <div class="clearer"></div>
148
 
    </div>
149
 
    <div class="related">
150
 
      <h3>Navigation</h3>
151
 
      <ul>
152
 
        <li class="right" style="margin-right: 10px">
153
 
          <a href="../../genindex.html" title="General Index"
154
 
             >index</a></li>
155
 
        <li class="right" >
156
 
          <a href="../../py-modindex.html" title="Python Module Index"
157
 
             >modules</a> |</li>
158
 
        <li class="right" >
159
 
          <a href="IPython.testing.plugin.test_ipdoctest.html" title="testing.plugin.test_ipdoctest"
160
 
             >next</a> |</li>
161
 
        <li class="right" >
162
 
          <a href="IPython.testing.plugin.show_refs.html" title="testing.plugin.show_refs"
163
 
             >previous</a> |</li>
164
 
        <li><a href="../../index.html">IPython 0.10.2 documentation</a> &raquo;</li>
165
 
          <li><a href="../index.html" >The IPython API</a> &raquo;</li> 
166
 
      </ul>
167
 
    </div>
168
 
    <div class="footer">
169
 
        &copy; Copyright 2008, The IPython Development Team.
170
 
      Last updated on Apr 09, 2011.
171
 
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1pre.
172
 
    </div>
173
 
  </body>
174
 
</html>
 
 
b'\\ No newline at end of file'