Ejemplo n.º 1
0
class AddMachineTest(CommandBase):

    def setUp(self):
        super(AddMachineTest, self).setUp()
        self.cmd = AddMachine(self.config, self.provider, self.env)

    def test_add_machine(self):
        self.setup_env()
        self.cmd.run()
Ejemplo n.º 2
0
class AddMachineTest(CommandBase):
    def setUp(self):
        super(AddMachineTest, self).setUp()
        self.cmd = AddMachine(self.config, self.provider, self.env)

    @mock.patch("juju_docean.constraints.get_images")
    def test_add_machine(self, mock_get_images):
        mock_get_images.return_value = IMAGE_MAP
        self.setup_env()
        self.cmd.run()
Ejemplo n.º 3
0
 def setUp(self):
     super(AddMachineTest, self).setUp()
     self.cmd = AddMachine(self.config, self.provider, self.env)