@@ -185,7 +185,7 @@ def test_ok(self):
185185 response = send_command ('lease4-get' ,
186186 addr = '172.28.5.12' )
187187 self .assertResponse ({
188- 'arguments' : {'cltt' : 0 , # TODO int(time.time()),
188+ 'arguments' : {'cltt' : int (time .time ()),
189189 'fqdn-fwd' : False ,
190190 'fqdn-rev' : False ,
191191 'hostname' : '' ,
@@ -204,7 +204,7 @@ def test_ok(self):
204204 ident_type = 'hw-address' ,
205205 subnet_id = 5 )
206206 self .assertResponse ({
207- 'arguments' : {'cltt' : 0 , # TODO int(time.time()),
207+ 'arguments' : {'cltt' : int (time .time ()),
208208 'fqdn-fwd' : False ,
209209 'fqdn-rev' : False ,
210210 'hostname' : '' ,
@@ -228,7 +228,7 @@ def test_ok(self):
228228 subnet_id = 6 )
229229 self .assertResponse ({
230230 'arguments' : {'client-id' : '01:02:03:04:05:06' ,
231- 'cltt' : 0 , # TODO int(time.time()),
231+ 'cltt' : int (time .time ()),
232232 'fqdn-fwd' : False ,
233233 'fqdn-rev' : False ,
234234 'hostname' : '' ,
@@ -346,7 +346,7 @@ def test_ok(self):
346346 self .assertResponse ({
347347 "text" : "2 IPv4 lease(s) found." ,
348348 "arguments" : {
349- "leases" : [{'cltt' : 0 , # TODO int(time.time()),
349+ "leases" : [{'cltt' : int (time .time ()),
350350 'fqdn-fwd' : False ,
351351 'fqdn-rev' : False ,
352352 'hostname' : '' ,
@@ -355,7 +355,7 @@ def test_ok(self):
355355 'state' : 0 ,
356356 'subnet-id' : 5 ,
357357 'valid-lft' : 4000 },
358- {'cltt' : 0 , # TODO int(time.time()),
358+ {'cltt' : int (time .time ()),
359359 'fqdn-fwd' : False ,
360360 'fqdn-rev' : False ,
361361 'hostname' : '' ,
@@ -374,7 +374,7 @@ def test_ok(self):
374374 self .assertResponse ({
375375 "text" : "2 IPv4 lease(s) found." ,
376376 "arguments" : {
377- "leases" : [{'cltt' : 0 , # TODO int(time.time()),
377+ "leases" : [{'cltt' : int (time .time ()),
378378 'fqdn-fwd' : False ,
379379 'fqdn-rev' : False ,
380380 'hostname' : '' ,
@@ -383,7 +383,7 @@ def test_ok(self):
383383 'state' : 0 ,
384384 'subnet-id' : 5 ,
385385 'valid-lft' : 4000 },
386- {'cltt' : 0 , # TODO int(time.time()),
386+ {'cltt' : int (time .time ()),
387387 'fqdn-fwd' : False ,
388388 'fqdn-rev' : False ,
389389 'hostname' : '' ,
@@ -402,7 +402,7 @@ def test_ok(self):
402402 self .assertResponse ({
403403 "text" : "1 IPv4 lease(s) found." ,
404404 "arguments" : {
405- "leases" : [{'cltt' : 0 , # TODO int(time.time()),
405+ "leases" : [{'cltt' : int (time .time ()),
406406 'fqdn-fwd' : False ,
407407 'fqdn-rev' : False ,
408408 'hostname' : '' ,
@@ -444,7 +444,7 @@ def test_ok(self):
444444 "text" : "2 IPv4 lease(s) found." ,
445445 "arguments" : {
446446 "count" : 2 ,
447- "leases" : [{'cltt' : 0 , # TODO int(time.time()),
447+ "leases" : [{'cltt' : int (time .time ()),
448448 'fqdn-fwd' : False ,
449449 'fqdn-rev' : False ,
450450 'hostname' : '' ,
@@ -453,7 +453,7 @@ def test_ok(self):
453453 'state' : 0 ,
454454 'subnet-id' : 5 ,
455455 'valid-lft' : 4000 },
456- {'cltt' : 0 , # TODO int(time.time()),
456+ {'cltt' : int (time .time ()),
457457 'fqdn-fwd' : False ,
458458 'fqdn-rev' : False ,
459459 'hostname' : '' ,
@@ -474,7 +474,7 @@ def test_ok(self):
474474 "text" : "1 IPv4 lease(s) found." ,
475475 "arguments" : {
476476 "count" : 1 ,
477- "leases" : [{'cltt' : 0 , # TODO int(time.time()),
477+ "leases" : [{'cltt' : int (time .time ()),
478478 'fqdn-fwd' : False ,
479479 'fqdn-rev' : False ,
480480 'hostname' : '' ,
@@ -495,7 +495,7 @@ def test_ok(self):
495495 "text" : "1 IPv4 lease(s) found." ,
496496 "arguments" : {
497497 "count" : 1 ,
498- "leases" : [{'cltt' : 0 , # TODO int(time.time()),
498+ "leases" : [{'cltt' : int (time .time ()),
499499 'fqdn-fwd' : False ,
500500 'fqdn-rev' : False ,
501501 'hostname' : '' ,
@@ -585,7 +585,7 @@ def test_ok(self):
585585 self .assertResponse ({
586586 'arguments' : {
587587 'count' : 1 ,
588- 'leases' : [{'cltt' : 0 , # TODO int(time.time()),
588+ 'leases' : [{'cltt' : int (time .time ()),
589589 'fqdn-fwd' : False ,
590590 'fqdn-rev' : False ,
591591 'hostname' : '' ,
@@ -620,7 +620,7 @@ def test_ok(self):
620620 self .assertResponse ({
621621 'arguments' : {
622622 'count' : 1 ,
623- 'leases' : [{'cltt' : 0 , # TODO int(time.time()),
623+ 'leases' : [{'cltt' : int (time .time ()),
624624 'fqdn-fwd' : False ,
625625 'fqdn-rev' : False ,
626626 'hostname' : '' ,
0 commit comments