Exemple #1
0
    def testBrokenScript(self):
        path = os.path.join(modulePath(), 'testservices', 'BrokenService.py')
        broken = ServiceTask(path, self.team1)
        broken.launch("NewFlag")
        time.sleep(0.1)
        broken.finish()
        broken.processOutput()
        broken.quit()

        self.assertEquals(broken.prevFlag(), None)
	def testBrokenScript(self):
		path = os.path.join(modulePath(),'testservices','BrokenService.py')
		broken = ServiceTask(path,self.team1)
		broken.launch("NewFlag")
		time.sleep(0.1)
		broken.finish()
		broken.processOutput()
		broken.quit()

		self.assertEquals(broken.prevFlag(),None)
Exemple #3
0
    def testCorrectScript(self):
        self.__ensureValidGoodService()
        path = os.path.join(modulePath(), 'testservices', 'GoodService.py')
        good = ServiceTask(path, self.team1)

        good.launch("NewFlag")
        time.sleep(0.1)
        good.finish()
        good.processOutput()
        good.quit()

        self.assertEquals(good.prevFlag(), "TestFlag")
	def testCorrectScript(self):
		self.__ensureValidGoodService()
		path = os.path.join(modulePath(),'testservices','GoodService.py')
		good = ServiceTask(path,self.team1)

		good.launch("NewFlag")
		time.sleep(0.1)
		good.finish()
		good.processOutput()
		good.quit()

		self.assertEquals(good.prevFlag(),"TestFlag")