コード例 #1
0
 def __init__(self, config, messaging):
     self.config = config
     self.publish_manager = messaging(config=config,
                                      queue='status')
     self.uuid = get_uuid(config['uuid_source'])
     self.type = config['type']
     self.running = False
コード例 #2
0
 def __init__(self, config, messaging):
     self.config = config
     self.publish_manager = messaging(config=config, queue='status')
     self.uuid = get_uuid(config['uuid_source'])
     self.type = config['type']
     self.running = False
コード例 #3
0
 def test_get_uuid_wrong_content(self):
     filename = 'tests/files/uuid_wrong.txt'
     uuid = get_uuid(filename)
     self.assertIs(str, type(uuid))
コード例 #4
0
 def test_get_uuid_wrong_path(self):
     filename = 'wrong/path'
     uuid = get_uuid(filename)
     self.assertIs(str, type(uuid))
コード例 #5
0
 def test_get_uuid(self):
     filename = 'tests/files/uuid.txt'
     uuid = get_uuid(filename)
     self.assertIs(str, type(uuid))
コード例 #6
0
 def insert(self, value):
     self.collection[get_uuid()] = copy(value)
コード例 #7
0
 def insert(self, value):
     self.collection[get_uuid()] = copy(value)