forked from mpdavis/python-jose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Davis
committed
Jun 23, 2016
1 parent
9975866
commit 9e4bbb2
Showing
10 changed files
with
378 additions
and
380 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
|
||
from jose.jwk import Key | ||
from jose.exceptions import JOSEError | ||
# from jose.jwk import Key | ||
# from jose.exceptions import JOSEError | ||
|
||
import pytest | ||
# import pytest | ||
|
||
|
||
@pytest.fixture | ||
def alg(): | ||
return Key() | ||
# @pytest.fixture | ||
# def alg(): | ||
# return Key() | ||
|
||
|
||
class TestBaseAlgorithm: | ||
# class TestBaseAlgorithm: | ||
|
||
def test_prepare_key_is_interface(self, alg): | ||
with pytest.raises(JOSEError): | ||
alg.prepare_key('secret') | ||
# def test_prepare_key_is_interface(self, alg): | ||
# with pytest.raises(JOSEError): | ||
# alg.prepare_key('secret') | ||
|
||
def test_sign_is_interface(self, alg): | ||
with pytest.raises(JOSEError): | ||
alg.sign('msg', 'secret') | ||
# def test_sign_is_interface(self, alg): | ||
# with pytest.raises(JOSEError): | ||
# alg.sign('msg', 'secret') | ||
|
||
def test_verify_is_interface(self, alg): | ||
with pytest.raises(JOSEError): | ||
alg.verify('msg', 'secret', 'sig') | ||
# def test_verify_is_interface(self, alg): | ||
# with pytest.raises(JOSEError): | ||
# alg.verify('msg', 'secret', 'sig') |
Oops, something went wrong.