Exemplo n.º 1
0
def test_extend_audience():
    _jwt = JWT()
    aud = _jwt.put_together_aud("abcdefgh")
    assert aud == ["abcdefgh"]
    aud = _jwt.put_together_aud("12345678", aud)
    assert set(aud) == {"abcdefgh", "12345678"}
Exemplo n.º 2
0
def test_extend_audience():
    _jwt = JWT()
    aud = _jwt.put_together_aud('abcdefgh')
    assert aud == ['abcdefgh']
    aud = _jwt.put_together_aud('12345678', aud)
    assert set(aud) == {'abcdefgh', '12345678'}