def METHOD_NAME(self):
    provider = providers.registry.by_id(FacebookProvider.id)
    request = RequestFactory().get(reverse('account_login'))
    request.session = {}
    script = provider.media_js(request)
    self.assertTrue('"appId": "app123id"' in script)