文件操作 - mockcustomsuite2.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/twisted/trial/test/mockcustomsuite2.py
编辑文件内容
# Copyright (c) 2006 Twisted Matrix Laboratories. See LICENSE for details """ Mock test module that contains a C{testSuite} method. L{runner.TestLoader} should load the tests from the C{testSuite}, not from the C{Foo} C{TestCase}. See L{twisted.trial.test.test_loader.LoaderTest.test_loadModuleWith_testSuite}. """ from twisted.trial import runner, unittest class Foo(unittest.SynchronousTestCase): def test_foo(self): pass def testSuite(): ts = runner.TestSuite() ts.name = "MyCustomSuite" return ts
修改文件时间
将文件时间修改为当前时间的前一年
删除文件