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
Exemplo n.º 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
Exemplo n.º 3
0
 def test_get_uuid_wrong_content(self):
     filename = 'tests/files/uuid_wrong.txt'
     uuid = get_uuid(filename)
     self.assertIs(str, type(uuid))
Exemplo n.º 4
0
 def test_get_uuid_wrong_path(self):
     filename = 'wrong/path'
     uuid = get_uuid(filename)
     self.assertIs(str, type(uuid))
Exemplo n.º 5
0
 def test_get_uuid(self):
     filename = 'tests/files/uuid.txt'
     uuid = get_uuid(filename)
     self.assertIs(str, type(uuid))
Exemplo n.º 6
0
 def insert(self, value):
     self.collection[get_uuid()] = copy(value)
Exemplo n.º 7
0
 def insert(self, value):
     self.collection[get_uuid()] = copy(value)