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()
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()
Example #3
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()
 def setUp(self):
     super(AddMachineTest, self).setUp()
     self.cmd = AddMachine(self.config, self.provider, self.env)
Example #5
0
 def setUp(self):
     super(AddMachineTest, self).setUp()
     self.cmd = AddMachine(self.config, self.provider, self.env)