@mock_sns
def test_set_platform_application_attributes():
    conn = boto.connect_sns()
    platform_application = conn.create_platform_application(name='my-application', platform='APNS', attributes={'PlatformCredential': 'platform_credential', 'PlatformPrincipal': 'platform_principal'})
    arn = platform_application['CreatePlatformApplicationResponse']['CreatePlatformApplicationResult']['PlatformApplicationArn']
    conn.set_platform_application_attributes(arn, {'PlatformPrincipal': 'other'})
    attributes = conn.get_platform_application_attributes(arn)['GetPlatformApplicationAttributesResponse']['GetPlatformApplicationAttributesResult']['Attributes']
    attributes.should.equal({'PlatformCredential': 'platform_credential', 'PlatformPrincipal': 'other'})
@mock_sns
def test_set_platform_application_attributes():
    conn = boto.connect_sns()
    platform_application = conn.create_platform_application(name='my-application', platform='APNS', attributes={'PlatformCredential': 'platform_credential', 'PlatformPrincipal': 'platform_principal'})
    arn = platform_application['CreatePlatformApplicationResponse']['CreatePlatformApplicationResult']['PlatformApplicationArn']
    conn.set_platform_application_attributes(arn, {'PlatformPrincipal': 'other'})
    attributes = conn.get_platform_application_attributes(arn)['GetPlatformApplicationAttributesResponse']['GetPlatformApplicationAttributesResult']['Attributes']
    attributes.should.equal({'PlatformCredential': 'platform_credential', 'PlatformPrincipal': 'other'})