示例#1
0
 def setUp(self):
     super(TestQosCreate, self).setUp()
     self.new_qos_spec = volume_fakes.FakeQos.create_one_qos()
     self.datalist = (self.new_qos_spec.consumer, self.new_qos_spec.id,
                      self.new_qos_spec.name,
                      utils.format_dict(self.new_qos_spec.specs))
     self.qos_mock.create.return_value = self.new_qos_spec
     # Get the command object to test
     self.cmd = qos_specs.CreateQos(self.app, None)
    def setUp(self):
        super(TestQosCreate, self).setUp()

        # Get the command object to test
        self.cmd = qos_specs.CreateQos(self.app, None)
    def setUp(self):
        super(TestQosCreate, self).setUp()

        self.qos_mock.create.return_value = self.new_qos_spec
        # Get the command object to test
        self.cmd = qos_specs.CreateQos(self.app, None)