source: valtobtest/subversion-1.6.2/subversion/bindings/swig/python/tests/trac/test.py @ 3

Last change on this file since 3 was 3, checked in by valtob, 15 years ago

subversion source 1.6.2 as test

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3#
4# Copyright (C) 2003, 2004, 2005 Edgewall Software
5# Copyright (C) 2003, 2004, 2005 Jonas Borgström <jonas@edgewall.com>
6# Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de>
7#
8# This software is licensed as described in the file
9# LICENSE_FOR_PYTHON_BINDINGS, which you should have received as part
10# of this distribution.  The terms are also available at
11# < http://subversion.tigris.org/license-for-python-bindings.html >.
12# If newer versions of this license are posted there, you may use a
13# newer version instead, at your option.
14#
15# Author: Jonas Borgström <jonas@edgewall.com>
16#         Christopher Lenz <cmlenz@gmx.de>
17
18import unittest
19
20
21class TestSetup(unittest.TestSuite):
22    """
23    Test suite decorator that allows a fixture to be setup for a complete
24    suite of test cases.
25    """
26    def setUp(self):
27        pass
28
29    def tearDown(self):
30        pass
31
32    def __call__(self, result):
33        self.setUp()
34        unittest.TestSuite.__call__(self, result)
35        self.tearDown()
36        return result
Note: See TracBrowser for help on using the repository browser.