/usr/share/pyshared/paste/webkit/FakeWebware/TaskKit/Tests/Test.py is in python-pastewebkit 1.0-7build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | import os, sys
sys.path.insert(1, os.path.abspath('../..'))
import TaskKit
#from MiscUtils import unittest
import unittest
class TaskKitTest(unittest.TestCase):
def setUp(self):
from TaskKit.Scheduler import Scheduler
self.scheduler = Scheduler()
def checkBasics(self):
sched = self.scheduler
sched.start()
def tearDown(self):
self.scheduler.stop()
self.scheduler = None
def makeTestSuite():
suite1 = unittest.makeSuite(TaskKitTest, 'check')
return unittest.TestSuite((suite1,))
if __name__=='__main__':
runner = unittest.TextTestRunner(stream=sys.stdout)
unittest.main(defaultTest='makeTestSuite', testRunner=runner)
|