This commit is contained in:
Raphael Bauduin 2015-05-19 07:01:14 -07:00
parent c7cfde7d65
commit 0c6ca7a476

View File

@ -28,6 +28,8 @@ class MinDelayValidation:
self.compared=v["target"] self.compared=v["target"]
def validate(self, flow): def validate(self, flow):
return self.compared<=flow[5] return self.compared<=flow[5]
class TcptraceTest: class TcptraceTest:
def __init__(self, yml, trace): def __init__(self, yml, trace):
self.yml = yml["validations"] self.yml = yml["validations"]
@ -35,7 +37,6 @@ class TcptraceTest:
def validate(self): def validate(self):
print self.yml print self.yml
for val in self.yml: for val in self.yml:
print "val: ", val
tested_value = self.get_tested_value(val) tested_value = self.get_tested_value(val)
klass_name=val["name"].title().replace("_","")+"Validation" klass_name=val["name"].title().replace("_","")+"Validation"
tester_klass=globals()[klass_name] tester_klass=globals()[klass_name]