Ejemplo n.º 1
0
    def setUp(self):
        super(TestTypeList, self).setUp()

        self.types_mock.list.return_value = self.volume_types
        self.types_mock.default.return_value = self.volume_types[0]
        # get the command to test
        self.cmd = volume_type.ListVolumeType(self.app, None)
Ejemplo n.º 2
0
    def setUp(self):
        super(TestTypeList, self).setUp()

        self.types_mock.list.return_value = [
            fakes.FakeResource(None,
                               copy.deepcopy(volume_fakes.TYPE),
                               loaded=True)
        ]
        # get the command to test
        self.cmd = volume_type.ListVolumeType(self.app, None)