proto.py (1596:b7e2d4d92624) proto.py (1635:97afbb6c5a15)
1import os
2import re
3import time
4
1import os
2import re
3import time
4
5from unit.control import TestControl
6from conftest import option
5from conftest import option
6from unit.control import TestControl
7
8
9class TestApplicationProto(TestControl):
10 def sec_epoch(self):
11 return time.mktime(time.gmtime())
12
13 def date_to_sec_epoch(self, date, template='%a, %d %b %Y %H:%M:%S %Z'):
14 return time.mktime(time.strptime(date, template))

--- 40 unchanged lines hidden ---
7
8
9class TestApplicationProto(TestControl):
10 def sec_epoch(self):
11 return time.mktime(time.gmtime())
12
13 def date_to_sec_epoch(self, date, template='%a, %d %b %Y %H:%M:%S %Z'):
14 return time.mktime(time.strptime(date, template))

--- 40 unchanged lines hidden ---