@mock_sns
def test_list_platform_applications():
    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)
@mock_sns
def test_list_platform_applications():
    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)