'Verify the settings allowed for WNS platform.'

def test_get_allowed_settings_wns(self):

    PUSH_SETTINGS = {'APPLICATIONS': {'my_wns_app': {'PLATFORM': 'WNS', 'PACKAGE_SECURITY_ID': '...', 'SECRET_KEY': '...', 'WNS_ACCESS_URL': '...'}}}
    AppConfig(PUSH_SETTINGS)
    PUSH_SETTINGS = {'APPLICATIONS': {'my_wns_app': {'PLATFORM': 'WNS'}}}
    with self.assertRaises(ImproperlyConfigured) as ic:
        AppConfig(PUSH_SETTINGS)
    self.assertEqual(str(ic.exception), "PUSH_NOTIFICATIONS_SETTINGS.APPLICATIONS['my_wns_app']['PACKAGE_SECURITY_ID']    is    missing.")
    PUSH_SETTINGS = {'APPLICATIONS': {'my_wns_app': {'PLATFORM': 'WNS', 'PACKAGE_SECURITY_ID': '...', 'SECRET_KEY': '...'}}}
    manager = AppConfig(PUSH_SETTINGS)
    app_config = manager._settings['APPLICATIONS']['my_wns_app']
    assert (app_config['WNS_ACCESS_URL'] == 'https://login.live.com/accesstoken.srf')
