annando / salmon-protocol

Automatically exported from code.google.com/p/salmon-protocol
0 stars 0 forks source link

test_salmon fails #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Traceback (most recent call last):
  File "test_salmon.py", line 36, in <module>
    class TestSalmonProtocol(unittest.TestCase):
  File "test_salmon.py", line 39, in TestSalmonProtocol
    class MockKeyRetriever(magicsig.PublicKeyRetriever):
AttributeError: 'module' object has no attribute 'PublicKeyRetriever'

Should be changed to KeyRetriever.

Then, this error:
Traceback (most recent call last):
  File "test_salmon.py", line 80, in testSignSalmon
    'acct:test@example.com')
  File "/Users/mime/Sites/helloworld/packages/salmon/../salmon/__init__.py", line 61, in SignSalmon
    if not self.magicenv.CheckAuthorship(text,
AttributeError: 'MagicEnvelopeProtocol' object has no attribute 
'CheckAuthorship'

Should be changed to IsAllowedSigner

and then some more errors - not sure if the file just needs to be rewritten 
completely...

Original issue reported on code.google.com by mimecuv...@gmail.com on 26 Aug 2011 at 8:36