def test_boot(self): """ Tests that you can submit a correct boot api request """ linode = Instance(self.client, 123) result = {} with self.mock_post(result) as m: linode.boot() self.assertEqual(m.call_url, '/linode/instances/123/boot')
def test_boot(self): """ Tests that you can submit a correct boot api request """ linode = Instance(self.client, 123) result = {} with self.mock_post(result) as m: linode.boot() self.assertEqual(m.call_url, '/linode/instances/123/boot')
def test_boot_with_config(self): """ Tests that you can submit a correct boot with a config api request """ linode = Instance(self.client, 123) config = linode.configs[0] result = {} with self.mock_post(result) as m: linode.boot(config=config) self.assertEqual(m.call_url, '/linode/instances/123/boot')
def test_boot_with_config(self): """ Tests that you can submit a correct boot with a config api request """ linode = Instance(self.client, 123) config = linode.configs[0] result = {} with self.mock_post(result) as m: linode.boot(config=config) self.assertEqual(m.call_url, '/linode/instances/123/boot')