@mock_sns
def test_create_platform_endpoint():
    conn = boto.connect_sns()
    platform_application = conn.create_platform_application(name='my-application', platform='APNS')
    application_arn = platform_application['CreatePlatformApplicationResponse']['CreatePlatformApplicationResult']['PlatformApplicationArn']
    endpoint = conn.create_platform_endpoint(platform_application_arn=application_arn, token='some_unique_id', custom_user_data='some user data', attributes={'Enabled': False})
    endpoint_arn = endpoint['CreatePlatformEndpointResponse']['CreatePlatformEndpointResult']['EndpointArn']
    endpoint_arn.should.contain('arn:aws:sns:us-east-1:123456789012:endpoint/APNS/my-application/')
@mock_sns
def test_create_platform_endpoint():
    conn = boto.connect_sns()
    platform_application = conn.create_platform_application(name='my-application', platform='APNS')
    application_arn = platform_application['CreatePlatformApplicationResponse']['CreatePlatformApplicationResult']['PlatformApplicationArn']
    endpoint = conn.create_platform_endpoint(platform_application_arn=application_arn, token='some_unique_id', custom_user_data='some user data', attributes={'Enabled': False})
    endpoint_arn = endpoint['CreatePlatformEndpointResponse']['CreatePlatformEndpointResult']['EndpointArn']
    endpoint_arn.should.contain('arn:aws:sns:us-east-1:123456789012:endpoint/APNS/my-application/')