~dongpo-deng/sahana-eden/test

« back to all changes in this revision

Viewing changes to docs/html/vita.modules.s3_test-pysrc.html

  • Committer: Deng Dongpo
  • Date: 2010-08-01 09:29:44 UTC
  • Revision ID: dongpo@dhcp-21193.iis.sinica.edu.tw-20100801092944-8t9obt4xtl7otesb
initial

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ascii"?>
 
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
3
          "DTD/xhtml1-transitional.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
5
<head>
 
6
  <title>vita.modules.s3_test</title>
 
7
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
 
8
  <script type="text/javascript" src="epydoc.js"></script>
 
9
</head>
 
10
 
 
11
<body bgcolor="white" text="black" link="blue" vlink="#204080"
 
12
      alink="#204080">
 
13
<!-- ==================== NAVIGATION BAR ==================== -->
 
14
<table class="navbar" border="0" width="100%" cellpadding="0"
 
15
       bgcolor="#a0c0ff" cellspacing="0">
 
16
  <tr valign="middle">
 
17
  <!-- Home link -->
 
18
      <th>&nbsp;&nbsp;&nbsp;<a
 
19
        href="vita.modules-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
 
20
 
 
21
  <!-- Tree link -->
 
22
      <th>&nbsp;&nbsp;&nbsp;<a
 
23
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
 
24
 
 
25
  <!-- Index link -->
 
26
      <th>&nbsp;&nbsp;&nbsp;<a
 
27
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
 
28
 
 
29
  <!-- Help link -->
 
30
      <th>&nbsp;&nbsp;&nbsp;<a
 
31
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
 
32
 
 
33
  <!-- Project homepage -->
 
34
      <th class="navbar" align="right" width="100%">
 
35
        <table border="0" cellpadding="0" cellspacing="0">
 
36
          <tr><th class="navbar" align="center"
 
37
            ><a class="navbar" target="_top" href="http://eden.sahanafoundation.org/">Sahana-Eden</a></th>
 
38
          </tr></table></th>
 
39
  </tr>
 
40
</table>
 
41
<table width="100%" cellpadding="0" cellspacing="0">
 
42
  <tr valign="top">
 
43
    <td width="100%">
 
44
      <span class="breadcrumbs">
 
45
        Package&nbsp;vita ::
 
46
        <a href="vita.modules-module.html">Package&nbsp;modules</a> ::
 
47
        Module&nbsp;s3_test
 
48
      </span>
 
49
    </td>
 
50
    <td>
 
51
      <table cellpadding="0" cellspacing="0">
 
52
        <!-- hide/show private -->
 
53
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
 
54
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
 
55
        <tr><td align="right"><span class="options"
 
56
            >[<a href="frames.html" target="_top">frames</a
 
57
            >]&nbsp;|&nbsp;<a href="vita.modules.s3_test-pysrc.html"
 
58
            target="_top">no&nbsp;frames</a>]</span></td></tr>
 
59
      </table>
 
60
    </td>
 
61
  </tr>
 
62
</table>
 
63
<h1 class="epydoc">Source Code for <a href="vita.modules.s3_test-module.html">Module vita.modules.s3_test</a></h1>
 
64
<pre class="py-src">
 
65
&#65279;# -*- coding: utf-8 -*-
 
66
 
 
67
import wsgi_intercept.webtest_intercept
 
68
 
 
69
class WSGI_Test(wsgi_intercept.webtest_intercept.WebCase):
 
70
    """Class to use for Testing Sahana
 
71
    - DocTests can call this direct
 
72
    - UnitTests can extend this
 
73
    """
 
74
    HTTP_CONN = wsgi_intercept.WSGI_HTTPConnection
 
75
    HOST = 'localhost'
 
76
    PORT = 8000
 
77
    
 
78
    def __init__(self, db):
 
79
        "Copy Intialise"
 
80
        wsgi_intercept.webtest_intercept.WebCase.__init__(self)
 
81
        #self.db=db
 
82
        return
 
83
 
 
84
    def setUp(self):
 
85
        "Hook into the WSGI process"
 
86
        wsgi_intercept.add_wsgi_intercept(self.HOST, self.PORT, create_fn)
 
87
        return
 
88
 
 
89
    def runTest(self):
 
90
        "Mandatory method for all TestCase instances"
 
91
        return
 
92
<script type="text/javascript">
 
93
<!--
 
94
expandto(location.href);
 
95
// -->
 
96
</script>
 
97
</pre>
 
98
<br />
 
99
<!-- ==================== NAVIGATION BAR ==================== -->
 
100
<table class="navbar" border="0" width="100%" cellpadding="0"
 
101
       bgcolor="#a0c0ff" cellspacing="0">
 
102
  <tr valign="middle">
 
103
  <!-- Home link -->
 
104
      <th>&nbsp;&nbsp;&nbsp;<a
 
105
        href="vita.modules-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
 
106
 
 
107
  <!-- Tree link -->
 
108
      <th>&nbsp;&nbsp;&nbsp;<a
 
109
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
 
110
 
 
111
  <!-- Index link -->
 
112
      <th>&nbsp;&nbsp;&nbsp;<a
 
113
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
 
114
 
 
115
  <!-- Help link -->
 
116
      <th>&nbsp;&nbsp;&nbsp;<a
 
117
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
 
118
 
 
119
  <!-- Project homepage -->
 
120
      <th class="navbar" align="right" width="100%">
 
121
        <table border="0" cellpadding="0" cellspacing="0">
 
122
          <tr><th class="navbar" align="center"
 
123
            ><a class="navbar" target="_top" href="http://eden.sahanafoundation.org/">Sahana-Eden</a></th>
 
124
          </tr></table></th>
 
125
  </tr>
 
126
</table>
 
127
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
 
128
  <tr>
 
129
    <td align="left" class="footer">
 
130
    Generated by Epydoc 3.0.1 on Sun May 30 23:29:57 2010
 
131
    </td>
 
132
    <td align="right" class="footer">
 
133
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
 
134
        >http://epydoc.sourceforge.net</a>
 
135
    </td>
 
136
  </tr>
 
137
</table>
 
138
 
 
139
<script type="text/javascript">
 
140
  <!--
 
141
  // Private objects are initially displayed (because if
 
142
  // javascript is turned off then we want them to be
 
143
  // visible); but by default, we want to hide them.  So hide
 
144
  // them unless we have a cookie that says to show them.
 
145
  checkCookie();
 
146
  // -->
 
147
</script>
 
148
</body>
 
149
</html>