'Using AppConfig with an application config that does not define PLATFORM
raises ImproperlyConfigured.'

def test_platform_configured(self):

    application_id = 'my_fcm_app'
    PUSH_SETTINGS = {'APPLICATIONS': {application_id: {}}}
    with self.assertRaises(ImproperlyConfigured) as ic:
        AppConfig(PUSH_SETTINGS)
    self.assertEqual(str(ic.exception), "PUSH_NOTIFICATIONS_SETTINGS.APPLICATIONS['{}']['PLATFORM']    is    required.    Must    be    one    of:    APNS,    FCM,    GCM,    WNS.".format(application_id))
