@mock_sns
def test_delete_platform_application():
    conn = boto.connect_sns()
    conn.create_platform_application(name='application1', platform='APNS')
    conn.create_platform_application(name='application2', platform='APNS')
    applications_repsonse = conn.list_platform_applications()
    applications = applications_repsonse['ListPlatformApplicationsResponse']['ListPlatformApplicationsResult']['PlatformApplications']
    applications.should.have.length_of(2)
    application_arn = applications[0]['PlatformApplicationArn']
    conn.delete_platform_application(application_arn)
    applications_repsonse = conn.list_platform_applications()
    applications = applications_repsonse['ListPlatformApplicationsResponse']['ListPlatformApplicationsResult']['PlatformApplications']
    applications.should.have.length_of(1)
@mock_sns
def test_delete_platform_application():
    conn = boto.connect_sns()
    conn.create_platform_application(name='application1', platform='APNS')
    conn.create_platform_application(name='application2', platform='APNS')
    applications_repsonse = conn.list_platform_applications()
    applications = applications_repsonse['ListPlatformApplicationsResponse']['ListPlatformApplicationsResult']['PlatformApplications']
    applications.should.have.length_of(2)
    application_arn = applications[0]['PlatformApplicationArn']
    conn.delete_platform_application(application_arn)
    applications_repsonse = conn.list_platform_applications()
    applications = applications_repsonse['ListPlatformApplicationsResponse']['ListPlatformApplicationsResult']['PlatformApplications']
    applications.should.have.length_of(1)