summaryrefslogtreecommitdiff
path: root/paste/webkit/FakeWebware/TaskKit/Tests/Test.py
blob: b45d3f62b244da02e5d1d8956dbf024e37b70bbf (plain)
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)