def test_aws_cf_simple(capsys, tmpdir, mocked_aws_cf_simple):
 (info, desc) = check_success(capsys, tmpdir, mocked_aws_cf_simple)
 assert (info['type'] == 'cloudformation')
 assert ('stack_name' in info)
 assert ('region' in info['provider'])
 assert ('access_key_id' in info['provider'])
 assert ('secret_access_key' in info['provider'])
 assert (info['ssh']['key_name'] == 'default')
 assert (info['ssh']['delete_with_stack'] is False)
 assert (info['ssh']['private_key'] == MOCK_SSH_KEY_DATA)
 assert (info['ssh']['user'] == 'core')
 assert ('stack_name' in desc)

def test_aws_cf_simple ( capsys , tmpdir , mocked_aws_cf_simple ) : ( info , desc ) = check_success ( capsys , tmpdir , mocked_aws_cf_simple ) assert ( info [ 'type' ] == 'cloudformation' ) assert ( 'stack_name' in info ) assert ( 'region' in info [ 'provider' ] ) assert ( 'access_key_id' in info [ 'provider' ] ) assert ( 'secret_access_key' in info [ 'provider' ] ) assert ( info [ 'ssh' ] [ 'key_name' ] == 'default' ) assert ( info [ 'ssh' ] [ 'delete_with_stack' ] is False ) assert ( info [ 'ssh' ] [ 'private_key' ] == MOCK_SSH_KEY_DATA ) assert ( info [ 'ssh' ] [ 'user' ] == 'core' ) assert ( 'stack_name' in desc )
test that required parameters are consumed and appropriate output is generated .