test.py

来自「subversion-1.4.5.tar.gz 配置svn的源码」· Python 代码 · 共 37 行

PY
37
字号
#!/usr/bin/env python# -*- coding: iso8859-1 -*-## Copyright (C) 2003, 2004, 2005 Edgewall Software# Copyright (C) 2003, 2004, 2005 Jonas Borgstr鰉 <jonas@edgewall.com># Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de>## This software is licensed as described in the file# LICENSE_FOR_PYTHON_BINDINGS, which you should have received as part# of this distribution.  The terms are also available at# < http://subversion.tigris.org/license-for-python-bindings.html >.# If newer versions of this license are posted there, you may use a# newer version instead, at your option.## Author: Jonas Borgstr鰉 <jonas@edgewall.com>#         Christopher Lenz <cmlenz@gmx.de>import unittestclass TestSetup(unittest.TestSuite):    """    Test suite decorator that allows a fixture to be setup for a complete    suite of test cases.    """    def setUp(self):        pass    def tearDown(self):        pass    def __call__(self, result):        self.setUp()        unittest.TestSuite.__call__(self, result)        self.tearDown()        return result

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?