def test_CloudFormationStackClass_status_empty(self):
        self.fake_client.describe_stacks = MagicMock(
            return_value={'Stacks': [None]})

        test_instance = stack.CloudFormationStack("ctx_node",
                                                  resource_id='Stack',
                                                  client=self.fake_client,
                                                  logger=None)

        self.assertEqual(test_instance.status, None)

        self.fake_client.describe_stacks.assert_called_with(StackName='Stack')
    def test_CloudFormationStackClass_properties(self):
        self.fake_client.describe_stacks = MagicMock(
            return_value={'Stacks': [{
                'StackName': 'Stack'
            }]})

        test_instance = stack.CloudFormationStack("ctx_node",
                                                  resource_id='Stack',
                                                  client=self.fake_client,
                                                  logger=None)

        self.assertEqual(test_instance.properties['StackName'], 'Stack')

        self.fake_client.describe_stacks.assert_called_with(StackName='Stack')