def test_procedureFirstRejectedThenSuccessful(self): self.procedure.execute() time.sleep(0.2) self.mmeIoService.sendMessage("enb", *s1SetupFailure(**{ "cause": "congestion", "timeToWait": 1, "criticalityDiagnostics": None, })) time.sleep(0.1) self.assertEqual(self.progress, S1SetupProcedure.ProgressWaitForNextAttempt) time.sleep(1.1) # greater than value of 'Time to wait' IE self.mmeIoService.sendMessage("enb", *s1SetupResponse(**self.sampleS1SetupResponseParameters)) time.sleep(0.1) self.assertEqual(self.progress, S1SetupProcedure.ProgressSuccess) self.procedure.terminate()
def test_procedureFirstRejectedThenSuccessful(self): self.procedure.execute() time.sleep(0.2) self.mmeIoService.sendMessage( "enb", *s1SetupFailure( **{ "cause": "congestion", "timeToWait": 1, "criticalityDiagnostics": None, })) time.sleep(0.1) self.assertEqual(self.progress, S1SetupProcedure.ProgressWaitForNextAttempt) time.sleep(1.1) # greater than value of 'Time to wait' IE self.mmeIoService.sendMessage( "enb", *s1SetupResponse(**self.sampleS1SetupResponseParameters)) time.sleep(0.1) self.assertEqual(self.progress, S1SetupProcedure.ProgressSuccess) self.procedure.terminate()
def sendReject(destination, cause, timeToWait): self.ioService.sendMessage(destination, *s1SetupFailure(cause, timeToWait, None))
def sendReject(destination, cause, timeToWait): self.ioService.sendMessage( destination, *s1SetupFailure(cause, timeToWait, None))