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)