コード例 #1
0
    def setUp(self):
        super(TestQosCreate, self).setUp()

        self.new_qos_spec = volume_fakes.FakeQos.create_one_qos()
        self.qos_mock.create.return_value = self.new_qos_spec

        self.data = (self.new_qos_spec.consumer, self.new_qos_spec.id,
                     self.new_qos_spec.name,
                     utils.format_dict(self.new_qos_spec.specs))

        # Get the command object to test
        self.cmd = qos_specs.CreateQos(self.app, None)
コード例 #2
0
    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)
コード例 #3
0
    def setUp(self):
        super(TestQosCreate, self).setUp()

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