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"}
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'}