def test_import_existing(self, mock_template, _): region = make_test_region_obj("us-west-2") m_template = make_test_template() stack = Stack.import_existing( { "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/" "SampleStack/e722ae60-fe62-11e8-9a0e-0ae8cc519968" }, m_template, region, "test_test", mock.Mock(), ) stack._timer.cancel() self.assertEqual(stack.name, "SampleStack")
def test_import_existing(self, _): m_cf = mock.Mock() region = AWSRegionObject("us-west-2", m_cf) region.s3bucket = mock.Mock() region.client = mock_client_method m_template = mock.Mock() stack = Stack.import_existing( { "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/" "SampleStack/e722ae60-fe62-11e8-9a0e-0ae8cc519968" }, m_template, region, "test_test", mock.Mock(), ) stack._timer.cancel() self.assertEqual(stack.name, "SampleStack")