Пример #1
0
 def _create_workers(self):
     fixture = {"host": "foo.cow", "id": unit_utils.WORKER_UUID1}
     self.worker_1 = db_api.worker_create(fixture)
     fixture = {"host": "bar.bar", "id": unit_utils.WORKER_UUID2}
     self.worker_2 = db_api.worker_create(fixture)
     fixture = {"host": "baz.cow", "id": unit_utils.WORKER_UUID3}
     self.worker_3 = db_api.worker_create(fixture)
     fixture = {"host": "qux.bar", "id": unit_utils.WORKER_UUID4}
     self.worker_4 = db_api.worker_create(fixture)
Пример #2
0
 def _create_workers(self):
     fixture = {'host': 'foo.cow', 'id': unit_utils.WORKER_UUID1}
     self.worker_1 = db_api.worker_create(fixture)
     fixture = {'host': 'bar.bar', 'id': unit_utils.WORKER_UUID2}
     self.worker_2 = db_api.worker_create(fixture)
     fixture = {'host': 'baz.cow', 'id': unit_utils.WORKER_UUID3}
     self.worker_3 = db_api.worker_create(fixture)
     fixture = {'host': 'qux.bar', 'id': unit_utils.WORKER_UUID4}
     self.worker_4 = db_api.worker_create(fixture)
Пример #3
0
 def _create_workers(self):
     fixture = {'host': 'foo.cow', 'id': unit_utils.WORKER_UUID1}
     self.worker_1 = db_api.worker_create(fixture)
     fixture = {'host': 'bar.bar', 'id': unit_utils.WORKER_UUID2}
     self.worker_2 = db_api.worker_create(fixture)
     fixture = {'host': 'baz.cow', 'id': unit_utils.WORKER_UUID3}
     self.worker_3 = db_api.worker_create(fixture)
     fixture = {'host': 'qux.bar', 'id': unit_utils.WORKER_UUID4}
     self.worker_4 = db_api.worker_create(fixture)
Пример #4
0
 def _create_workers(self):
     fixture = {'host': 'ameade.cow'}
     self.worker_1 = db_api.worker_create(fixture)
     fixture = {'host': 'foo.bar'}
     self.worker_2 = db_api.worker_create(fixture)