proto.py (1303:248eeec4c272) proto.py (1477:b93d1acf81bd)
1import re
2import time
1import re
2import time
3
3from unit.control import TestControl
4
5
6class TestApplicationProto(TestControl):
7 def sec_epoch(self):
8 return time.mktime(time.gmtime())
9
10 def date_to_sec_epoch(self, date, template='%a, %d %b %Y %H:%M:%S %Z'):

--- 33 unchanged lines hidden ---
4from unit.control import TestControl
5
6
7class TestApplicationProto(TestControl):
8 def sec_epoch(self):
9 return time.mktime(time.gmtime())
10
11 def date_to_sec_epoch(self, date, template='%a, %d %b %Y %H:%M:%S %Z'):

--- 33 unchanged lines hidden ---