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">
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>
11
<body bgcolor="white" text="black" link="blue" vlink="#204080"
13
<!-- ==================== NAVIGATION BAR ==================== -->
14
<table class="navbar" border="0" width="100%" cellpadding="0"
15
bgcolor="#a0c0ff" cellspacing="0">
18
<th> <a
19
href="vita.modules-module.html">Home</a> </th>
22
<th> <a
23
href="module-tree.html">Trees</a> </th>
26
<th> <a
27
href="identifier-index.html">Indices</a> </th>
30
<th> <a
31
href="help.html">Help</a> </th>
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>
41
<table width="100%" cellpadding="0" cellspacing="0">
44
<span class="breadcrumbs">
46
<a href="vita.modules-module.html">Package modules</a> ::
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 private</a>]</span></td></tr>
55
<tr><td align="right"><span class="options"
56
>[<a href="frames.html" target="_top">frames</a
57
>] | <a href="vita.modules.s3_test-pysrc.html"
58
target="_top">no frames</a>]</span></td></tr>
63
<h1 class="epydoc">Source Code for <a href="vita.modules.s3_test-module.html">Module vita.modules.s3_test</a></h1>
65
# -*- coding: utf-8 -*-
67
import wsgi_intercept.webtest_intercept
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
74
HTTP_CONN = wsgi_intercept.WSGI_HTTPConnection
78
def __init__(self, db):
80
wsgi_intercept.webtest_intercept.WebCase.__init__(self)
85
"Hook into the WSGI process"
86
wsgi_intercept.add_wsgi_intercept(self.HOST, self.PORT, create_fn)
90
"Mandatory method for all TestCase instances"
92
<script type="text/javascript">
94
expandto(location.href);
99
<!-- ==================== NAVIGATION BAR ==================== -->
100
<table class="navbar" border="0" width="100%" cellpadding="0"
101
bgcolor="#a0c0ff" cellspacing="0">
104
<th> <a
105
href="vita.modules-module.html">Home</a> </th>
108
<th> <a
109
href="module-tree.html">Trees</a> </th>
112
<th> <a
113
href="identifier-index.html">Indices</a> </th>
116
<th> <a
117
href="help.html">Help</a> </th>
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>
127
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
129
<td align="left" class="footer">
130
Generated by Epydoc 3.0.1 on Sun May 30 23:29:57 2010
132
<td align="right" class="footer">
133
<a target="mainFrame" href="http://epydoc.sourceforge.net"
134
>http://epydoc.sourceforge.net</a>
139
<script type="text/javascript">
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.