Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 1 | ''' |
2 | Created on Aug 18, 2017 | ||||
3 | |||||
4 | @author: sw6830 | ||||
5 | ''' | ||||
efiacor | 125390b | 2020-05-06 01:14:00 +0100 | [diff] [blame^] | 6 | import time |
7 | import uuid | ||||
8 | |||||
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 9 | from robot.api import logger |
efiacor | 125390b | 2020-05-06 01:14:00 +0100 | [diff] [blame^] | 10 | |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 11 | |
12 | class xNFLibrary(object): | ||||
13 | |||||
14 | def __init__(self): | ||||
15 | pass | ||||
16 | |||||
efiacor | 125390b | 2020-05-06 01:14:00 +0100 | [diff] [blame^] | 17 | @staticmethod |
18 | def create_header_from_string(dict_str): | ||||
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 19 | logger.info("Enter create_header_from_string: dictStr") |
efiacor | 125390b | 2020-05-06 01:14:00 +0100 | [diff] [blame^] | 20 | return dict(u.split("=") for u in dict_str.split(",")) |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 21 | |
efiacor | 125390b | 2020-05-06 01:14:00 +0100 | [diff] [blame^] | 22 | @staticmethod |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 23 | def Generate_UUID(self): |
24 | """generate a uuid""" | ||||
25 | return uuid.uuid4() | ||||
26 | |||||
efiacor | 125390b | 2020-05-06 01:14:00 +0100 | [diff] [blame^] | 27 | |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 28 | if __name__ == '__main__': |
29 | lib = xNFLibrary() | ||||
efiacor | 125390b | 2020-05-06 01:14:00 +0100 | [diff] [blame^] | 30 | time.sleep(100000) |