summary refs log tree commit diff stats
path: root/test/__init__.py
blob: 29796ac1f2e488432c588c74da58a9114dc7a5af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright (C) 2009, 2010  Roman Zimbelmann <romanz@lavabit.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

import os, sys

__all__ = [ x[0:x.index('.')] \
		for x in os.listdir(os.path.dirname(__file__)) \
		if x.startswith('tc_') ]

def init():
	sys.path.append(os.path.abspath(os.path.join(sys.path[0], '..')))

class Fake(object):
	def __getattr__(self, attrname):
		val = Fake()
		self.__dict__[attrname] = val
		return val

	def __call__(self, *_):
		return Fake()

	def __clear__(self):
		self.__dict__.clear()

	def __iter__(self):
		return iter(())

class OK(Exception):
	pass

def raise_ok(*_, **__):
	raise OK()
ot;#ffffff">curses</font></a>.ascii</strong></big></big></font></td ><td align=right valign=bottom ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/lib/python3.1/curses/ascii.py">/usr/lib/python3.1/curses/ascii.py</a><br><a href="http://docs.python.org/library/curses.ascii">Module Docs</a></font></td></tr></table> <p><tt>Constants&nbsp;and&nbsp;membership&nbsp;tests&nbsp;for&nbsp;ASCII&nbsp;characters</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#eeaa77"> <td colspan=3 valign=bottom>&nbsp;<br> <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> <tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td> <td width="100%"><dl><dt><a name="-alt"><strong>alt</strong></a>(c)</dt></dl> <dl><dt><a name="-ascii"><strong>ascii</strong></a>(c)</dt></dl> <dl><dt><a name="-ctrl"><strong>ctrl</strong></a>(c)</dt></dl> <dl><dt><a name="-isalnum"><strong>isalnum</strong></a>(c)</dt></dl> <dl><dt><a name="-isalpha"><strong>isalpha</strong></a>(c)</dt></dl> <dl><dt><a name="-isascii"><strong>isascii</strong></a>(c)</dt></dl> <dl><dt><a name="-isblank"><strong>isblank</strong></a>(c)</dt></dl> <dl><dt><a name="-iscntrl"><strong>iscntrl</strong></a>(c)</dt></dl> <dl><dt><a name="-isctrl"><strong>isctrl</strong></a>(c)</dt></dl> <dl><dt><a name="-isdigit"><strong>isdigit</strong></a>(c)</dt></dl> <dl><dt><a name="-isgraph"><strong>isgraph</strong></a>(c)</dt></dl> <dl><dt><a name="-islower"><strong>islower</strong></a>(c)</dt></dl> <dl><dt><a name="-ismeta"><strong>ismeta</strong></a>(c)</dt></dl> <dl><dt><a name="-isprint"><strong>isprint</strong></a>(c)</dt></dl> <dl><dt><a name="-ispunct"><strong>ispunct</strong></a>(c)</dt></dl> <dl><dt><a name="-isspace"><strong>isspace</strong></a>(c)</dt></dl> <dl><dt><a name="-isupper"><strong>isupper</strong></a>(c)</dt></dl> <dl><dt><a name="-isxdigit"><strong>isxdigit</strong></a>(c)</dt></dl> <dl><dt><a name="-unctrl"><strong>unctrl</strong></a>(c)</dt></dl> </td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#55aa55"> <td colspan=3 valign=bottom>&nbsp;<br> <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> <tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td> <td width="100%"><strong>ACK</strong> = 6<br> <strong>BEL</strong> = 7<br> <strong>BS</strong> = 8<br> <strong>CAN</strong> = 24<br> <strong>CR</strong> = 13<br> <strong>DC1</strong> = 17<br> <strong>DC2</strong> = 18<br> <strong>DC3</strong> = 19<br> <strong>DC4</strong> = 20<br> <strong>DEL</strong> = 127<br> <strong>DLE</strong> = 16<br> <strong>EM</strong> = 25<br> <strong>ENQ</strong> = 5<br> <strong>EOT</strong> = 4<br> <strong>ESC</strong> = 27<br> <strong>ETB</strong> = 23<br> <strong>ETX</strong> = 3<br> <strong>FF</strong> = 12<br> <strong>FS</strong> = 28<br> <strong>GS</strong> = 29<br> <strong>HT</strong> = 9<br> <strong>LF</strong> = 10<br> <strong>NAK</strong> = 21<br> <strong>NL</strong> = 10<br> <strong>NUL</strong> = 0<br> <strong>RS</strong> = 30<br> <strong>SI</strong> = 15<br> <strong>SO</strong> = 14<br> <strong>SOH</strong> = 1<br> <strong>SP</strong> = 32<br> <strong>STX</strong> = 2<br> <strong>SUB</strong> = 26<br> <strong>SYN</strong> = 22<br> <strong>TAB</strong> = 9<br> <strong>US</strong> = 31<br> <strong>VT</strong> = 11<br> <strong>controlnames</strong> = ['NUL', 'SOH', 'STX', 'ETX', 'EOT', 'ENQ', 'ACK', 'BEL', 'BS', 'HT', 'LF', 'VT', 'FF', 'CR', 'SO', 'SI', 'DLE', 'DC1', 'DC2', 'DC3', ...]</td></tr></table> </body></html>