Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(5)  |  Derive(0)  |  Import(2)

src/s/f/sftf-HEAD/UserAgentBasicTestSuite/case703.py   sftf(Download)
					if (test is not None) and (test.method == "REGISTER"):
						self.addResult(TestCase.TC_WARN, "disregarded SRV priorities and tried to re-register at backup server first")
					diff = int(Helper.eventTimeDiff(req3.event, req2.event))
					if diff > self.expires:
						self.addResult(TestCase.TC_WARN, "re-registration at primary server was " + str(diff - self.expires) + " seconds after expiration of Contact at backup server")

src/s/f/sftf-HEAD/UserAgentBasicTestSuite/case605s.py   sftf(Download)
import NetworkEventHandler as NEH
import Log
from Helper import eventTimeDiff
 
class case605s (TestCase):
			num_len = range(0, req_a_l-1)
			for i in num_len:
				time_array.append(eventTimeDiff(req_array[i].event, req_array[i+1].event))
			# check if T1 is 500ms
			if time_array[0] < (min_percent * 0.5):

src/s/f/sftf-HEAD/UserAgentBasicTestSuite/case605c.py   sftf(Download)
import NetworkEventHandler as NEH
import Log
from Helper import eventTimeDiff
 
class case605c (TestCase):
			num_len = range(0, repl_a_l - 1)
			for i in num_len:
				time_array.append(eventTimeDiff(repl_array[i].event, repl_array[i+1].event))
			if time_array[0] < (min_percent * 0.5):
				self.addResult(TestCase.TC_FAILED, "timer for first retry (T1=0.5s) is below " + str(min_percent * 0.5) + " (" + str(time_array[0]) + ")")

src/s/f/sftf-HEAD/UserAgentBasicTestSuite/case401.py   sftf(Download)
			return
 
		delay = Helper.eventTimeDiff(new_req.event, old_req.event)
		if (delay > (self.reregister_time*0.25)) and (delay < (self.reregister_time*0.75)):
			Log.logDebug("case401: delay between REGISTER is between 0.25 * expires and 0.75 * expires => additional load", 2)

src/s/f/sftf-HEAD/UserAgentBasicTestSuite/case304.py   sftf(Download)
			self.new_req = message
			if not ((not self.old_req.hasHeaderField("Authorization")) and self.new_req.hasHeaderField("Authorization")):
				self.last_delay = Helper.eventTimeDiff(self.new_req.event, self.old_req.event)
				if self.smallest_delay == 0:
					self.smallest_delay = self.last_delay