Ejemplo n.º 1
0
    def test_interface(self):

        key = jwk.Key("key", "ALG")

        with pytest.raises(NotImplementedError):
            key.sign('')

        with pytest.raises(NotImplementedError):
            key.verify('', '')
Ejemplo n.º 2
0
    def test_interface(self):

        key = jwk.Key()

        with pytest.raises(NotImplementedError):
            key._process_jwk(None)

        with pytest.raises(NotImplementedError):
            key.sign('')

        with pytest.raises(NotImplementedError):
            key.verify('', '')