

def setUp(self):
    super(TestTasksDeploymentOrder, self).setUp()
    self.cluster = mock.Mock()
    self.nodes = [{
        'id': 1,
        'role': 'controller',
    }, {
        'id': 2,
        'role': 'compute',
    }]
    self.hook = BasePluginDeploymentHooksSerializer(self.nodes, x.cluster, role_resolver=NullResolver([x['id'] for x in self.nodes]))

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/unit/test_plugins_serializers.py TestTasksDeploymentOrder.setUp/VarMisuse@75/98 `self`->`x`