Example #1
0
    def test_interface(self):

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

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

        with pytest.raises(NotImplementedError):
            key.verify('', '')
Example #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('', '')