@modify_settings(**jwt_modify_settings)
    def _check_login_social_jwt_user(self, url, data):
        try:
            from rest_framework_jwt.settings import api_settings
        except __HOLE__:
            return
        jwt_decode_handler = api_settings.JWT_DECODE_HANDLER
        resp = self.client.post(url, data)
        self.assertEqual(resp.status_code, 200)
        self.assertEqual(resp.data['email'], self.email)
        # check token valid
        jwt_data = jwt_decode_handler(resp.data['token'])
        self.assertEqual(jwt_data['email'], self.email)
dataset/ETHPy150Open st4lk/django-rest-social-auth/tests/test_social.py/TestSocialAuth2._check_login_social_jwt_user