--- python-unit-1.4.1.orig/debian/python-unit.examples +++ python-unit-1.4.1/debian/python-unit.examples @@ -0,0 +1 @@ +examples/* --- python-unit-1.4.1.orig/debian/README.Debian +++ python-unit-1.4.1/debian/README.Debian @@ -0,0 +1,21 @@ +python2.2-unit for Debian +------------------------- + +Python unit testing framework, based on Erich Gamma's JUnit and Kent Beck's +Smalltalk testing framework. + +For further information on the above, refer to:- + + http://members.pingnet.ch/gamma/junit.htm + http://www.XProgramming.com/testfram.htm + +This module contains the core framework classes that form the basis of +specific test cases and suites (TestCase, TestSuite etc.), and also a +text-based utility class for running the tests and reporting the results +(TextTestRunner). + +The Debian package contains two additional docs called unittest.html and +unittestgui.html that come from PyUnit home page but are not part of +the main tarball. + + -- Alexandre Fayolle , Fri Dec 23 17:24:45 2005 --- python-unit-1.4.1.orig/debian/python-unit.install +++ python-unit-1.4.1/debian/python-unit.install @@ -0,0 +1,4 @@ +unittestgui.py usr/lib/python2.7/dist-packages +doc/*.html usr/share/doc/python-unit/html +debian/add-on/*.html usr/share/doc/python-unit/html +debian/add-on/unittestgui usr/bin --- python-unit-1.4.1.orig/debian/python-unit.menu +++ python-unit-1.4.1/debian/python-unit.menu @@ -0,0 +1 @@ +?package(python-unit): needs="x11" section="Apps/Programming" title="Pyunit" command="unittestgui" --- python-unit-1.4.1.orig/debian/python-unit.prerm +++ python-unit-1.4.1/debian/python-unit.prerm @@ -0,0 +1,7 @@ +#! /bin/sh -e + + +#DEBHELPER# + +exit 0 + --- python-unit-1.4.1.orig/debian/python-unit.dirs +++ python-unit-1.4.1/debian/python-unit.dirs @@ -0,0 +1,2 @@ +usr/lib/python2.7/dist-packages +usr/share/lintian/overrides --- python-unit-1.4.1.orig/debian/rules +++ python-unit-1.4.1/debian/rules @@ -0,0 +1,56 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=5 + +ADDON=debian/add-on + +build: build-stamp +build-stamp: + dh_testdir + + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_install + dh_installexamples + dh_installdirs + cp debian/python-unit.override debian/python-unit/usr/share/lintian/overrides/python-unit + + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_python2 + dh_installdocs + dh_installman + dh_installchangelogs CHANGES + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: +# nothing to do + +binary: binary-indep +.PHONY: build clean binary-indep binary-arch binary install + + + --- python-unit-1.4.1.orig/debian/control +++ python-unit-1.4.1/debian/control @@ -0,0 +1,21 @@ +Source: python-unit +Section: python +Priority: optional +Build-Depends: debhelper (>= 5.0.37.1) +Build-Depends-Indep: python-all, python-all-dev +Maintainer: Alexandre Fayolle +XS-Python-Version: all +Standards-Version: 3.7.2 + +Package: python-unit +Architecture: all +XB-Python-Version: ${python:Versions} +Depends: ${python:Depends}, python-tk +Provides: ${python:Provides} +Description: unit test framework for Python + Pyunit provides modules that help the developer with + creating unit test suites for Python programs, both + textually and graphically. + . + Homepage: http://pyunit.sourceforge.net + --- python-unit-1.4.1.orig/debian/python-unit.doc-base +++ python-unit-1.4.1/debian/python-unit.doc-base @@ -0,0 +1,10 @@ +Document: python-unit +Title: PyUnit Manual +Author: Steve Purcell +Abstract: This manual describes how PyUnit can help + in creating unit test suites for Python programs. +Section: Devel + +Format: HTML +Index: /usr/share/doc/python-unit/html/PyUnit.html +Files: /usr/share/doc/python-unit/html/*.html --- python-unit-1.4.1.orig/debian/python-unit.override +++ python-unit-1.4.1/debian/python-unit.override @@ -0,0 +1 @@ +python-unit: copyright-should-refer-to-common-license-file-for-gpl --- python-unit-1.4.1.orig/debian/python-unit.postinst +++ python-unit-1.4.1/debian/python-unit.postinst @@ -0,0 +1,5 @@ +#! /bin/sh -e + +#DEBHELPER# + +exit 0 --- python-unit-1.4.1.orig/debian/copyright +++ python-unit-1.4.1/debian/copyright @@ -0,0 +1,90 @@ +This package was debianized by Jerome Marant on +Sat, 29 Jul 2000 16:01:14 +0200. It was taken over by Alexandre Fayolle + on Wed, 12 Jun 2002 10:02:02 +0200 + +It was downloaded from http://pyunit.sourceforge.net/ + +Upstream Author: Steven Purcell + +Copyright: + +Copyright (c) 1999 Steve Purcell +This module is free software, and you may redistribute it and/or modify +it under the same terms as Python itself, so long as this copyright message +and disclaimer are retained in their original form. + +IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, +SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF +THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. + +THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, +AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, +SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + +---------------------------------------------------------------------- + +PSF LICENSE AGREEMENT +--------------------- + +1. This LICENSE AGREEMENT is between the Python Software Foundation +("PSF"), and the Individual or Organization ("Licensee") accessing and +otherwise using Python 2.1 software in source or binary form and its +associated documentation. + +2. Subject to the terms and conditions of this License Agreement, PSF +hereby grants Licensee a nonexclusive, royalty-free, world-wide +license to reproduce, analyze, test, perform and/or display publicly, +prepare derivative works, distribute, and otherwise use Python 2.1 +alone or in any derivative version, provided, however, that PSF's +License Agreement and PSF's notice of copyright, i.e., "Copyright (c) +2001 Python Software Foundation; All Rights Reserved" are retained in +Python 2.1 alone or in any derivative version prepared by Licensee. + +3. In the event Licensee prepares a derivative work that is based on +or incorporates Python 2.1 or any part thereof, and wants to make +the derivative work available to others as provided herein, then +Licensee hereby agrees to include in any such work a brief summary of +the changes made to Python 2.1. + +4. PSF is making Python 2.1 available to Licensee on an "AS IS" +basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR +IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND +DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS +FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 2.1 WILL NOT +INFRINGE ANY THIRD PARTY RIGHTS. + +5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON +2.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS +A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 2.1, +OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + +6. This License Agreement will automatically terminate upon a material +breach of its terms and conditions. + +7. This License Agreement shall be governed by the federal +intellectual property law of the United States, including without +limitation the federal copyright law, and, to the extent such +U.S. federal law does not apply, by the law of the Commonwealth of +Virginia, excluding Virginia's conflict of law provisions. +Notwithstanding the foregoing, with regard to derivative works based +on Python 2.1 that incorporate non-separable material that was +previously distributed under the GNU General Public License (GPL), the +law of the Commonwealth of Virginia shall govern this License +Agreement only as to issues arising under or with respect to +Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this +License Agreement shall be deemed to create any relationship of +agency, partnership, or joint venture between PSF and Licensee. This +License Agreement does not grant permission to use PSF trademarks or +trade name in a trademark sense to endorse or promote products or +services of Licensee, or any third party. + +8. By copying, installing or otherwise using Python 2.1, Licensee +agrees to be bound by the terms and conditions of this License +Agreement. + +---------------------------------------------------------------------- + +The same terms apply to Python 2.2 and greater. --- python-unit-1.4.1.orig/debian/python-unit.manpages +++ python-unit-1.4.1/debian/python-unit.manpages @@ -0,0 +1 @@ +debian/add-on/unittestgui.1 --- python-unit-1.4.1.orig/debian/changelog +++ python-unit-1.4.1/debian/changelog @@ -0,0 +1,186 @@ +python-unit (1.4.1-16ubuntu1) precise; urgency=low + + * Build using dh_python2. + + -- Matthias Klose Wed, 14 Dec 2011 16:12:03 +0100 + +python-unit (1.4.1-16build1) lucid; urgency=low + + * Rebuild dropping the extension for python2.5. + + -- Matthias Klose Mon, 01 Feb 2010 22:06:09 +0000 + +python-unit (1.4.1-16) unstable; urgency=low + + * Rewrote /usr/bin/unittestgui in python, to avoid hardcoding a path + (closes: #379591) + + -- Alexandre Fayolle Mon, 31 Jul 2006 11:16:15 +0200 + +python-unit (1.4.1-15) unstable; urgency=low + + * Added missing build dependency on python-support (closes: #375260) + + -- Alexandre Fayolle Mon, 26 Jun 2006 15:33:55 +0200 + +python-unit (1.4.1-14) unstable; urgency=low + + * Complie with policy ยง7.6 + * Added lintian override for false positive on + copyright-should-refer-to-common-license-file-for-gpl + + -- Alexandre Fayolle Fri, 16 Jun 2006 09:24:26 +0200 + +python-unit (1.4.1-13) unstable; urgency=low + + * Updated to new python policy + * Updated standards version to 3.7.2 + + -- Alexandre Fayolle Tue, 13 Jun 2006 18:35:05 +0200 + +python-unit (1.4.1-12) unstable; urgency=low + + * Removed dependencies on python2.[12] and python2.[12]-tk (Closes: #362466) + * Updated debian/watch file + * Use debhelper in version 5 compatibility mode + + -- Alexandre Fayolle Thu, 13 Apr 2006 19:12:14 +0200 + +python-unit (1.4.1-11) unstable; urgency=low + + * Don't install unittest.py and use the one shipped in standard python + library (Closes: #354525) + + -- Alexandre Fayolle Fri, 17 Mar 2006 21:17:52 +0100 + +python-unit (1.4.1-10) unstable; urgency=low + + * Fixed unittestgui laucher script to pass additional arguments (Closes: #320928) + * Replaced packaging for each version of the python interpreter with one + package putting things in /usr/lib/site-python, so that the modules + are available to any python interpreter installed + * updated standards to 3.6.2 + + -- Alexandre Fayolle Fri, 23 Dec 2005 17:27:19 +0100 + +python-unit (1.4.1-9) unstable; urgency=low + + * Fixed update-alternatives in prerm scripts (Closes: #288298) + * Quoted menu entries to remove lintian warnings + * Reworked short description to remove lintian warnings + + -- Alexandre Fayolle Mon, 3 Jan 2005 09:10:26 +0100 + +python-unit (1.4.1-8) unstable; urgency=low + + * Updated maintainer's email address + * added debian/watch file + + -- Alexandre Fayolle Wed, 6 Oct 2004 19:51:10 +0200 + +python-unit (1.4.1-7) unstable; urgency=low + + * Fixed lintian warning in debian/copyrights + * Updated Standards-Version + * Fixed missing dependency on python-tk + * Added script to launch unittestgui easily, and a manpage + * Added menu entry for unittestgui + + -- Alexandre Fayolle Sat, 14 Feb 2004 19:46:40 +0100 + +python-unit (1.4.1-6) unstable; urgency=low + + * Changed section to "python" + * updated Standards-Version + * changed default python version to 2.3 + + -- Alexandre Fayolle Mon, 11 Aug 2003 08:29:57 +0200 + +python-unit (1.4.1-5) unstable; urgency=low + + * Changed default python version. Closes: Bug#161578 + * Added python2.3-unit + * debian/copyright: added Python License since python-unit is + licensed under the terms of Python. + + -- Alexandre Fayolle Thu, 5 Sep 2002 14:49:50 +0200 + +python-unit (1.4.1-4) unstable; urgency=low + + * New maintainer + * debian/rules: + - removed build directory in clean target + + -- Alexandre Fayolle Wed, 12 Jun 2002 10:02:02 +0200 + +python-unit (1.4.1-3) unstable; urgency=low + + * Added generation of python2.2-unit, a Python 2.2.x specific + version of the package. + * debian/control: + - added python2.2-dev to build dependencies. + - added a dedicated section for python2.2-unit. + + -- Jerome Marant Sat, 8 Dec 2001 13:28:52 +0100 + +python-unit (1.4.1-2) unstable; urgency=low + + * Modified the package with respect to the Python Policy. + Closes: Bug#118256. + * debian/rules: + + added the building of python2.1-unit. + + removed the support for Python 1.5.x and 2.0. + * debian/control: + + added python2.1-unit, a Python 2.1.x specific version of the + package. + + python-unit is now a dummy package that depends on python2.1-unit. + + added python2.1-dev in build dependencies. + + Replaced Build-Depends with Build-Depends-Indep. + + -- Jerome Marant Sun, 4 Nov 2001 22:34:00 +0100 + +python-unit (1.4.1-1) unstable; urgency=low + + * New upstream release. + * debian/rules: + + Changed Debhelper version to v3. + + Modified to build with the help of distutils. + * debian/control: + + Changed architecture tag to `all' since packages contain + only architecture independent files. + + Bumped debhelper version dependency to 3.0.0. + + Switched Standards-Version to 3.5.6. + + -- Jerome Marant Fri, 10 Aug 2001 20:49:54 +0200 + +python-unit (1.3.1-3) unstable; urgency=low + + * Changed maintainer email address. + * Switched Standards-Version to 3.5.2. + + -- Jerome Marant Sun, 25 Mar 2001 23:46:29 +0200 + +python-unit (1.3.1-2) unstable; urgency=low + + * Changed the interpreter name to python2 in the postinst + when calling compileall.py. Closes: Bug#88756. + * Fixed a bug in doc-base installation for python2-unit. + + -- Jerome Marant Tue, 6 Mar 2001 17:26:32 +0100 + +python-unit (1.3.1-1) unstable; urgency=low + + * New upstream release. + * New python2 package. + * Updated extra documentation. + + -- Jerome Marant Thu, 15 Feb 2001 17:45:18 +0100 + +python-unit (1.2.0-1) unstable; urgency=low + + * Initial Release. + * Added two extra docs from PyUnit home page. + + -- Jerome Marant Sat, 29 Jul 2000 16:01:14 +0200 + + --- python-unit-1.4.1.orig/debian/watch +++ python-unit-1.4.1/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/pyunit/pyunit-(.*)-src\.tar\.gz debian uupdate --- python-unit-1.4.1.orig/debian/add-on/unittestgui.html +++ python-unit-1.4.1/debian/add-on/unittestgui.html @@ -0,0 +1,215 @@ + +unittestgui + +

+ +

 
 unittestgui (version: 1.5)
 


+GUI framework and application for use with Python unit testing framework.
+Execute tests written using the framework provided by the 'unittest' module.

+Further information is available in the bundled documentation, and from

+  http://pyunit.sourceforge.net/

+Copyright (c) 1999, 2000, 2001 Steve Purcell
+This module is free software, and you may redistribute it and/or modify
+it under the same terms as Python itself, so long as this copyright message
+and disclaimer are retained in their original form.

+IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
+SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
+THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.

+THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE.  THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
+AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
+SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. +
+ + +

+ + + +

 Modules
                                                                                                                                                                                                                              
Tkinter
string
sys
Tkinter
tkMessageBox
traceback
unittest
+

+ + + +

 Classes
                                                                                                                                                                                                                              
+
BaseGUITestRunner +
+
+
TkTestRunner +
+
+
Tkinter.Frame(Tkinter.Widget) +
+
+
ProgressBar +
+
+
RollbackImporter +
unittest.TestResult +
+
+
GUITestResult +
+
+
+ +

+ + + + + + +

 class BaseGUITestRunner
          Subclass this class to create a GUI TestRunner that uses a specific
+windowing toolkit. The class takes care of running tests in the correct
+manner, and making callbacks to the derived class to obtain information
+or signal that events have occurred. +
 
                                                                                                                                                                                                                    
__init__(self, *args, **kwargs) +
no doc string
errorDialog(self, title, message) +
Override to display an error arising from GUI usage +
getSelectedTestName(self) +
Override to return the name of the test selected to be run +
notifyRunning(self) +
Override to set GUI in 'running' mode, enabling 'stop' button etc. +
notifyStopped(self) +
Override to set GUI in 'stopped' mode, enabling 'run' button etc. +
notifyTestErrored(self, test, err) +
Override to indicate that a test has just errored +
notifyTestFailed(self, test, err) +
Override to indicate that a test has just failed +
notifyTestFinished(self, test) +
Override to indicate that a test has finished (it may already have
failed or errored) +
notifyTestStarted(self, test) +
Override to indicate that a test is about to run +
runClicked(self) +
To be called in response to user choosing to run a test +
stopClicked(self) +
To be called in response to user stopping the running of a test +
+

+ + + + + + +

 class GUITestResult(unittest.TestResult)
          TestResult that makes callbacks to its associated GUI TestRunner.
+Used by BaseGUITestRunner. Need not be created directly. +
 
                                                                                                                                                                                                                    
__init__(self, callback) +
no doc string
addError(self, test, err) +
no doc string
addFailure(self, test, err) +
no doc string
startTest(self, test) +
no doc string
stopTest(self, test) +
no doc string
+

+ + + + + + +

 class ProgressBar(Tkinter.Frame)
          A simple progress bar that shows a percentage progress in
+the given colour. +
 
                                                                                                                                                                                                                    
__init__(self, *args, **kwargs) +
no doc string
paint(self, *args) +
no doc string
setProgressFraction(self, fraction, color='blue') +
no doc string
+

+ + + + + + +

 class RollbackImporter
          This tricky little class is used to make sure that modules under test
+will be reloaded the next time they are imported. +
 
                                                                                                                                                                                                                    
__init__(self) +
no doc string
rollbackImports(self) +
no doc string
+

+ + + + + + +

 class TkTestRunner(BaseGUITestRunner)
          An implementation of BaseGUITestRunner using Tkinter. +
 
                                                                                                                                                                                                                    
createWidgets(self) +
Creates and packs the various widgets.
 
Why is it that GUI code always ends up looking a mess, despite all the
best intentions to keep it tidy? Answers on a postcard, please. +
errorDialog(self, title, message) +
no doc string
getSelectedTestName(self) +
no doc string
initGUI(self, root, initialTestName) +
Set up the GUI inside the given root window. The test name entry
field will be pre-filled with the given initialTestName. +
notifyRunning(self) +
no doc string
notifyStopped(self) +
no doc string
notifyTestErrored(self, test, err) +
no doc string
notifyTestFailed(self, test, err) +
no doc string
notifyTestFinished(self, test) +
no doc string
notifyTestStarted(self, test) +
no doc string
showAboutDialog(self) +
no doc string
showHelpDialog(self) +
no doc string
showSelectedError(self) +
no doc string

--- python-unit-1.4.1.orig/debian/add-on/unittestgui.1 +++ python-unit-1.4.1/debian/add-on/unittestgui.1 @@ -0,0 +1,31 @@ +.TH UNITTESTGUI 1 "Feb 14, 2004" python-unit "User's Manual" +.SH NAME +unittestgui \- a graphical user interface to run python unit tests + +.SH SYNOPSIS +.B unittestgui + +.SH DESCRIPTION +.B unittestgui +is a graphical user interface to run python unit tests. The main +window has a text entry that can be used to specify the name of the +test modules, and a button to launch the tests. A progress bar +displays how many tests were run, and how many failed or caused +errors. It is possible to get more information about failed or error +tests by double clicking on the test name in a summary list. + +.SH OPTIONS +.B unittestgui +takes no options on the command line. + +.SH REQUIRES +Python, TkInter + +.SH "SEE ALSO" + +.I http://pyunit.sourceforge.net/ + +.SH AUTHOR +Steve Purcell . + +This manpage was written by Alexandre Fayolle . --- python-unit-1.4.1.orig/debian/add-on/unittest.html +++ python-unit-1.4.1/debian/add-on/unittest.html @@ -0,0 +1,468 @@ + +unittest + +

+ +

 
 unittest (version: 1.20)
 


+Python unit testing framework, based on Erich Gamma's JUnit and Kent Beck's
+Smalltalk testing framework.

+Further information is available in the bundled documentation, and from

+  http://pyunit.sourceforge.net/

+This module contains the core framework classes that form the basis of
+specific test cases and suites (TestCaseTestSuite etc.), and also a
+text-based utility class for running the tests and reporting the results
+(TextTestRunner).

+Copyright (c) 1999, 2000, 2001 Steve Purcell
+This module is free software, and you may redistribute it and/or modify
+it under the same terms as Python itself, so long as this copyright message
+and disclaimer are retained in their original form.

+IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
+SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
+THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.

+THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE.  THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
+AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
+SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. +
+ + +

+ + + +

 Modules
                                                                                                                                                                                                                              
os
string
sys
time
traceback
+

+ + + +

 Classes
                                                                                                                                                                                                                              
+
JUnitTextTestRunner +
TestCase +
+
+
FunctionTestCase +
+
+
TestProgram +
TestResult +
+
+
_JUnitTextTestResult +
_VerboseTextTestResult +
+
+
TestSuite +
VerboseTextTestRunner +
_WritelnDecorator +
+ +

+ + + + + + +

 class FunctionTestCase(TestCase)
          A test case that wraps a test function.

+This is useful for slipping pre-existing test functions into the
+PyUnit framework. Optionally, set-up and tidy-up functions can be
+supplied. As with TestCase, the tidy-up ('tearDown') function will
+always be called if the set-up ('setUp') function ran successfully. +
 
                                                                                                                                                                                                                    
__init__(self, testFunc, setUp=None, tearDown=None, description=None) +
no doc string
__repr__(self) +
no doc string
__str__(self) +
no doc string
id(self) +
no doc string
runTest(self) +
no doc string
setUp(self) +
no doc string
shortDescription(self) +
no doc string
tearDown(self) +
no doc string
+

+ + + + + + +

 class JUnitTextTestRunner
          A test runner class that displays results in textual form.

+The display format approximates that of JUnit's 'textui' test runner.
+This test runner may be removed in a future version of PyUnit. +
 
                                                                                                                                                                                                                    
__init__(self, stream=<open file '<stderr>', mode 'w' at 804ac88>) +
no doc string
run(self, test) +
Run the given test case or test suite. +
+

+ + + + + + +

 class TestCase
          A class whose instances are single test cases.

+Test authors should subclass TestCase for their own tests. Construction 
+and deconstruction of the test's environment ('fixture') can be
+implemented by overriding the 'setUp' and 'tearDown' methods respectively.

+By default, the test code itself should be placed in a method named
+'runTest'.

+If the fixture may be used for many test cases, create as 
+many test methods as are needed. When instantiating such a TestCase
+subclass, specify in the constructor arguments the name of the test method
+that the instance is to execute. +
 
                                                                                                                                                                                                                    
__exc_info(self) +
Return a version of sys.exc_info() with the traceback frame
minimised; usually the top level of the traceback frame is not
needed. +
__call__(self, result=None) +
no doc string
__init__(self, methodName='runTest') +
Create an instance of the class that will use the named test
method when executed. Raises a ValueError if the instance does
not have a method with the specified name. +
__repr__(self) +
no doc string
__str__(self) +
no doc string
assertRaises(self, excClass, callableObj, *args, **kwargs) +
Assert that an exception of class excClass is thrown
by callableObj when invoked with arguments args and keyword
arguments kwargs. If a different type of exception is
thrown, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception. +
assert_(self, expr, msg=None) +
Equivalent of built-in 'assert', but is not optimised out when
__debug__ is false. +
countTestCases(self) +
no doc string
defaultTestResult(self) +
no doc string
fail(self, msg=None) +
Fail immediately, with the given message. +
failIf(self, expr, msg=None) +
Fail the test if the expression is true. +
assert_(self, expr, msg=None) +
Equivalent of built-in 'assert', but is not optimised out when
__debug__ is false. +
id(self) +
no doc string
run(self, result=None) +
no doc string
setUp(self) +
Hook method for setting up the test fixture before exercising it. +
shortDescription(self) +
Returns a one-line description of the test, or None if no
description has been provided.
 
The default implementation of this method returns the first line of
the specified test method's docstring. +
tearDown(self) +
Hook method for deconstructing the test fixture after testing it. +
+

+ + + + + + +

 class TestProgram
          A command-line program that runs a set of tests; this is primarily
+for making test modules conveniently executable. +
 
                                                                                                                                                                                                                    
__init__(self, module='__main__', defaultTest=None, argv=None, testRunner=None) +
no doc string
createTests(self) +
no doc string
parseArgs(self, argv) +
no doc string
runTests(self) +
no doc string
usageExit(self, msg=None) +
no doc string
+

+ + + + + + +

 class TestResult
          Holder for test result information.

+Test results are automatically managed by the TestCase and TestSuite
+classes, and do not need to be explicitly manipulated by writers of tests.

+Each instance holds the total number of tests run, and collections of
+failures and errors that occurred among those test runs. The collections
+contain tuples of (testcase, exceptioninfo), where exceptioninfo is a
+tuple of values as returned by sys.exc_info(). +
 
                                                                                                                                                                                                                    
__init__(self) +
no doc string
__repr__(self) +
no doc string
addError(self, test, err) +
Called when an error has occurred +
addFailure(self, test, err) +
Called when a failure has occurred +
startTest(self, test) +
Called when the given test is about to be run +
stop(self) +
Indicates that the tests should be aborted +
stopTest(self, test) +
Called when the given test has been run +
wasSuccessful(self) +
Tells whether or not this result was a success +
+

+ + + + + + +

 class TestSuite
          A test suite is a composite test consisting of a number of TestCases.

+For use, create an instance of TestSuite, then add test case instances.
+When all tests have been added, the suite can be passed to a test
+runner, such as TextTestRunner. It will run the individual test cases
+in the order in which they were added, aggregating the results. When
+subclassing, do not forget to call the base class constructor. +
 
                                                                                                                                                                                                                    
__call__(self, result) +
no doc string
__init__(self, tests=()) +
no doc string
__repr__(self) +
no doc string
__repr__(self) +
no doc string
addTest(self, test) +
no doc string
addTests(self, tests) +
no doc string
countTestCases(self) +
no doc string
run(self, result) +
no doc string
+

+ + + + + + +

 class VerboseTextTestRunner
          A test runner class that displays results in textual form.

+It prints out the names of tests as they are run, errors as they
+occur, and a summary of the results at the end of the test run. +
 
                                                                                                                                                                                                                    
__init__(self, stream=<open file '<stderr>', mode 'w' at 804ac88>, descriptions=1) +
no doc string
run(self, test) +
Run the given test case or test suite. +
+

+ + + + + + +

 class VerboseTextTestRunner
          A test runner class that displays results in textual form.

+It prints out the names of tests as they are run, errors as they
+occur, and a summary of the results at the end of the test run. +
 
                                                                                                                                                                                                                    
__init__(self, stream=<open file '<stderr>', mode 'w' at 804ac88>, descriptions=1) +
no doc string
run(self, test) +
Run the given test case or test suite. +
+

+ + + + + + +

 class _JUnitTextTestResult(TestResult)
          A test result class that can print formatted text results to a stream.

+Used by JUnitTextTestRunner. +
 
                                                                                                                                                                                                                    
__init__(self, stream) +
no doc string
addError(self, test, error) +
no doc string
addFailure(self, test, error) +
no doc string
printErrors(self) +
no doc string
printFailures(self) +
no doc string
printHeader(self) +
no doc string
printNumberedErrors(self, errFlavour, errors) +
no doc string
printResult(self) +
no doc string
startTest(self, test) +
no doc string
+

+ + + + + + +

 class _VerboseTextTestResult(TestResult)
          A test result class that can print formatted text results to a stream.

+Used by VerboseTextTestRunner. +
 
                                                                                                                                                                                                                    
__init__(self, stream, descriptions) +
no doc string
_printError(self, flavour, test, err) +
no doc string
addError(self, test, err) +
no doc string
addFailure(self, test, err) +
no doc string
startTest(self, test) +
no doc string
stopTest(self, test) +
no doc string
+

+ + + + + + +

 class _WritelnDecorator
          Used to decorate file-like objects with a handy 'writeln' method +
 
                                                                                                                                                                                                                    
__getattr__(self, attr) +
no doc string
__init__(self, stream) +
no doc string
writeln(self, *args) +
no doc string
+

+ + + + + + +

 class TestProgram
          A command-line program that runs a set of tests; this is primarily
+for making test modules conveniently executable. +
 
                                                                                                                                                                                                                    
__init__(self, module='__main__', defaultTest=None, argv=None, testRunner=None) +
no doc string
createTests(self) +
no doc string
parseArgs(self, argv) +
no doc string
runTests(self) +
no doc string
usageExit(self, msg=None) +
no doc string

+

+ + + +

 Functions
                                                                                                                                                                                                                              
createTestInstance(name, module=None) +
Finds tests by their name, optionally only within the given module.
 
Return the newly-constructed test, ready to run. If the name contains a ':'
then the portion of the name after the colon is used to find a specific
test case within the test case class named before the colon.
 
Examples:
 findTest('examples.listtests.suite')
    -- returns result of calling 'suite'
 findTest('examples.listtests.ListTestCase:checkAppend')
    -- returns result of calling ListTestCase('checkAppend')
 findTest('examples.listtests.ListTestCase:check-')
    -- returns result of calling makeSuite(ListTestCase, prefix="check") +
getTestCaseNames(testCaseClass, prefix, sortUsing=<built-in function cmp>) +
Extracts all the names of functions in the given test case class
and its base classes that start with the given prefix. This is used
by makeSuite(). +
makeSuite(testCaseClass, prefix='test', sortUsing=<built-in function cmp>) +
Returns a TestSuite instance built from all of the test functions
in the given test case class whose names begin with the given
prefix. The cases are sorted by their function names
using the supplied comparison function, which defaults to 'cmp'. +
--- python-unit-1.4.1.orig/debian/add-on/unittestgui +++ python-unit-1.4.1/debian/add-on/unittestgui @@ -0,0 +1,9 @@ +#!/usr/bin/python +from unittestgui import main + +if __name__ == '__main__': + import sys + if len(sys.argv) == 2: + main(sys.argv[1]) + else: + main()