@@ -185,7 +185,7 @@ def test_ok(self):
185
185
response = send_command ('lease4-get' ,
186
186
addr = '172.28.5.12' )
187
187
self .assertResponse ({
188
- 'arguments' : {'cltt' : 0 , # TODO int(time.time()),
188
+ 'arguments' : {'cltt' : int (time .time ()),
189
189
'fqdn-fwd' : False ,
190
190
'fqdn-rev' : False ,
191
191
'hostname' : '' ,
@@ -204,7 +204,7 @@ def test_ok(self):
204
204
ident_type = 'hw-address' ,
205
205
subnet_id = 5 )
206
206
self .assertResponse ({
207
- 'arguments' : {'cltt' : 0 , # TODO int(time.time()),
207
+ 'arguments' : {'cltt' : int (time .time ()),
208
208
'fqdn-fwd' : False ,
209
209
'fqdn-rev' : False ,
210
210
'hostname' : '' ,
@@ -228,7 +228,7 @@ def test_ok(self):
228
228
subnet_id = 6 )
229
229
self .assertResponse ({
230
230
'arguments' : {'client-id' : '01:02:03:04:05:06' ,
231
- 'cltt' : 0 , # TODO int(time.time()),
231
+ 'cltt' : int (time .time ()),
232
232
'fqdn-fwd' : False ,
233
233
'fqdn-rev' : False ,
234
234
'hostname' : '' ,
@@ -346,7 +346,7 @@ def test_ok(self):
346
346
self .assertResponse ({
347
347
"text" : "2 IPv4 lease(s) found." ,
348
348
"arguments" : {
349
- "leases" : [{'cltt' : 0 , # TODO int(time.time()),
349
+ "leases" : [{'cltt' : int (time .time ()),
350
350
'fqdn-fwd' : False ,
351
351
'fqdn-rev' : False ,
352
352
'hostname' : '' ,
@@ -355,7 +355,7 @@ def test_ok(self):
355
355
'state' : 0 ,
356
356
'subnet-id' : 5 ,
357
357
'valid-lft' : 4000 },
358
- {'cltt' : 0 , # TODO int(time.time()),
358
+ {'cltt' : int (time .time ()),
359
359
'fqdn-fwd' : False ,
360
360
'fqdn-rev' : False ,
361
361
'hostname' : '' ,
@@ -374,7 +374,7 @@ def test_ok(self):
374
374
self .assertResponse ({
375
375
"text" : "2 IPv4 lease(s) found." ,
376
376
"arguments" : {
377
- "leases" : [{'cltt' : 0 , # TODO int(time.time()),
377
+ "leases" : [{'cltt' : int (time .time ()),
378
378
'fqdn-fwd' : False ,
379
379
'fqdn-rev' : False ,
380
380
'hostname' : '' ,
@@ -383,7 +383,7 @@ def test_ok(self):
383
383
'state' : 0 ,
384
384
'subnet-id' : 5 ,
385
385
'valid-lft' : 4000 },
386
- {'cltt' : 0 , # TODO int(time.time()),
386
+ {'cltt' : int (time .time ()),
387
387
'fqdn-fwd' : False ,
388
388
'fqdn-rev' : False ,
389
389
'hostname' : '' ,
@@ -402,7 +402,7 @@ def test_ok(self):
402
402
self .assertResponse ({
403
403
"text" : "1 IPv4 lease(s) found." ,
404
404
"arguments" : {
405
- "leases" : [{'cltt' : 0 , # TODO int(time.time()),
405
+ "leases" : [{'cltt' : int (time .time ()),
406
406
'fqdn-fwd' : False ,
407
407
'fqdn-rev' : False ,
408
408
'hostname' : '' ,
@@ -444,7 +444,7 @@ def test_ok(self):
444
444
"text" : "2 IPv4 lease(s) found." ,
445
445
"arguments" : {
446
446
"count" : 2 ,
447
- "leases" : [{'cltt' : 0 , # TODO int(time.time()),
447
+ "leases" : [{'cltt' : int (time .time ()),
448
448
'fqdn-fwd' : False ,
449
449
'fqdn-rev' : False ,
450
450
'hostname' : '' ,
@@ -453,7 +453,7 @@ def test_ok(self):
453
453
'state' : 0 ,
454
454
'subnet-id' : 5 ,
455
455
'valid-lft' : 4000 },
456
- {'cltt' : 0 , # TODO int(time.time()),
456
+ {'cltt' : int (time .time ()),
457
457
'fqdn-fwd' : False ,
458
458
'fqdn-rev' : False ,
459
459
'hostname' : '' ,
@@ -474,7 +474,7 @@ def test_ok(self):
474
474
"text" : "1 IPv4 lease(s) found." ,
475
475
"arguments" : {
476
476
"count" : 1 ,
477
- "leases" : [{'cltt' : 0 , # TODO int(time.time()),
477
+ "leases" : [{'cltt' : int (time .time ()),
478
478
'fqdn-fwd' : False ,
479
479
'fqdn-rev' : False ,
480
480
'hostname' : '' ,
@@ -495,7 +495,7 @@ def test_ok(self):
495
495
"text" : "1 IPv4 lease(s) found." ,
496
496
"arguments" : {
497
497
"count" : 1 ,
498
- "leases" : [{'cltt' : 0 , # TODO int(time.time()),
498
+ "leases" : [{'cltt' : int (time .time ()),
499
499
'fqdn-fwd' : False ,
500
500
'fqdn-rev' : False ,
501
501
'hostname' : '' ,
@@ -585,7 +585,7 @@ def test_ok(self):
585
585
self .assertResponse ({
586
586
'arguments' : {
587
587
'count' : 1 ,
588
- 'leases' : [{'cltt' : 0 , # TODO int(time.time()),
588
+ 'leases' : [{'cltt' : int (time .time ()),
589
589
'fqdn-fwd' : False ,
590
590
'fqdn-rev' : False ,
591
591
'hostname' : '' ,
@@ -620,7 +620,7 @@ def test_ok(self):
620
620
self .assertResponse ({
621
621
'arguments' : {
622
622
'count' : 1 ,
623
- 'leases' : [{'cltt' : 0 , # TODO int(time.time()),
623
+ 'leases' : [{'cltt' : int (time .time ()),
624
624
'fqdn-fwd' : False ,
625
625
'fqdn-rev' : False ,
626
626
'hostname' : '' ,
0 commit comments