@mock_sns
def test_create_platform_application():
    conn = boto.connect_sns()
    platform_application = conn.create_platform_application(name='my-application', platform='APNS', attributes={'PlatformCredential': 'platform_credential', 'PlatformPrincipal': 'platform_principal'})
    application_arn = platform_application['CreatePlatformApplicationResponse']['CreatePlatformApplicationResult']['PlatformApplicationArn']
    application_arn.should.equal('arn:aws:sns:us-east-1:123456789012:app/APNS/my-application')
@mock_sns
def test_create_platform_application():
    conn = boto.connect_sns()
    platform_application = conn.create_platform_application(name='my-application', platform='APNS', attributes={'PlatformCredential': 'platform_credential', 'PlatformPrincipal': 'platform_principal'})
    application_arn = platform_application['CreatePlatformApplicationResponse']['CreatePlatformApplicationResult']['PlatformApplicationArn']
    application_arn.should.equal('arn:aws:sns:us-east-1:123456789012:app/APNS/my-application')