'verify the endpoints JWT authentication.'

def test_jwt_auth(self):

    scopes = [u'email', u'profile']
    expires_in = settings.OAUTH_ID_TOKEN_EXPIRATION
    token = JwtBuilder(self.user).build_token(scopes, expires_in)
    headers = {u'HTTP_AUTHORIZATION': (u'JWT    ' + token)}
    self.client.logout()
    response = self.client.get(self.path, **headers)
    self.assertEqual(response.status_code, 200)
