'Verify the settings allowed for FCM platform.'

def test_get_allowed_settings_fcm(self):

    PUSH_SETTINGS = {'APPLICATIONS': {'my_fcm_app': {'PLATFORM': 'FCM', 'API_KEY': '...', 'POST_URL': '...', 'MAX_RECIPIENTS': '...', 'ERROR_TIMEOUT': '...'}}}
    AppConfig(PUSH_SETTINGS)
    PUSH_SETTINGS = {'APPLICATIONS': {'my_fcm_app': {'PLATFORM': 'FCM'}}}
    with self.assertRaises(ImproperlyConfigured) as ic:
        AppConfig(PUSH_SETTINGS)
    self.assertEqual(str(ic.exception), "PUSH_NOTIFICATIONS_SETTINGS.APPLICATIONS['my_fcm_app']['API_KEY']    is    missing.")
    PUSH_SETTINGS = {'APPLICATIONS': {'my_fcm_app': {'PLATFORM': 'FCM', 'API_KEY': '...'}}}
    manager = AppConfig(PUSH_SETTINGS)
    app_config = manager._settings['APPLICATIONS']['my_fcm_app']
    assert (app_config['POST_URL'] == 'https://fcm.googleapis.com/fcm/send')
    assert (app_config['MAX_RECIPIENTS'] == 1000)
    assert (app_config['ERROR_TIMEOUT'] is None)
