

def setUp(self):
    super(TestPluginsDeploymentEnvironment, self).setUp()
    self.cluster = mock.Mock()
    self.cluster.release.operating_system = consts.RELEASE_OS.ubuntu
    self.nodes = [{
        'id': 1,
        'role': 'controller',
    }, {
        'id': 2,
        'role': 'compute',
    }]
    plugin = mock.Mock(tasks=[], version='4.0.0', get_deployment_tasks=(lambda : []))
    self.plugins = [plugin]

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/unit/test_plugins_serializers.py TestPluginsDeploymentEnvironment.setUp/original