[Twisted-Python] conch unit test errors

Stephen Figgins fig at monitor.net
Mon Apr 14 10:35:41 EDT 2003


I am using a CVS version of Twisted, and pycrypto-1.9a6 on a RedHat 9.0 
install (openssh 3.5p1).  When running tests on conch I get an error on 
the first test, OK on the second, then get stuck on the third test.  If 
I Ctrl-C out of the test, I get the following:

[fig at dawa Twisted]$ ./bin/trial -v -m twisted.test.test_conch
twisted.test.test_conch
   SSHKeysHandlingTestCase
     test RSA keys ... 
  [ERROR]
     test DSA keys ... 
     [OK]
   SSHTransportTestCase
     test the SSH server against the OpenSSH client ... 
  [ERROR]
     test the SSH server against the SSH client ... 
  [ERROR]

===============================================================================
ERROR: testRSA (twisted.test.test_conch.SSHKeysHandlingTestCase)
-------------------------------------------------------------------------------
Traceback (most recent call last):
    File "/home/fig/twisted/Twisted/twisted/trial/unittest.py", line 
188, in runOneTest
     method(testCase)
    File "/home/fig/twisted/Twisted/twisted/test/test_conch.py", line 
76, in testRSA
     self._testKey(publicRSA_openssh, privateRSA_openssh, 'openssh')
    File "/home/fig/twisted/Twisted/twisted/test/test_conch.py", line 
83, in _testKey
     self._testKeySignVerify(privKey, pubKey)
    File "/home/fig/twisted/Twisted/twisted/test/test_conch.py", line 
89, in _testKeySignVerify
     sig = keys.signData(priv, testData)
    File "/home/fig/twisted/Twisted/twisted/conch/ssh/keys.py", line 
342, in signData
     objType = objectType(obj)
    File "/home/fig/twisted/Twisted/twisted/conch/ssh/keys.py", line 
317, in objectType
     return keyDataMapping[tuple(obj.keydata)]
  KeyError: ('n', 'e', 'd', 'p', 'q', 'u')
===============================================================================
ERROR: testOurServerOpenSSHClient 
(twisted.test.test_conch.SSHTransportTestCase)-------------------------------------------------------------------------------
Traceback! exceptions.KeyError, ('n', 'e', 'd', 'p', 'q', 'u')
/home/fig/twisted/Twisted/twisted/internet/default.py:469:doSelect
/home/fig/twisted/Twisted/twisted/internet/tcp.py:114:doRead
/home/fig/twisted/Twisted/twisted/conch/ssh/transport.py:195:dataReceived
/home/fig/twisted/Twisted/twisted/conch/ssh/transport.py:390:ssh_KEX_DH_GEX_INIT/home/fig/twisted/Twisted/twisted/conch/ssh/keys.py:342:signData
/home/fig/twisted/Twisted/twisted/conch/ssh/keys.py:317:objectType
===============================================================================
ERROR: testOurServerOurClient (twisted.test.test_conch.SSHTransportTestCase)
-------------------------------------------------------------------------------
Traceback! exceptions.KeyError, ('n', 'e', 'd', 'p', 'q', 'u')
/home/fig/twisted/Twisted/twisted/internet/default.py:469:doSelect
/home/fig/twisted/Twisted/twisted/internet/tcp.py:114:doRead
/home/fig/twisted/Twisted/twisted/conch/ssh/transport.py:195:dataReceived
/home/fig/twisted/Twisted/twisted/conch/ssh/transport.py:390:ssh_KEX_DH_GEX_INIT/home/fig/twisted/Twisted/twisted/conch/ssh/keys.py:342:signData
/home/fig/twisted/Twisted/twisted/conch/ssh/keys.py:317:objectType
-------------------------------------------------------------------------------
Ran 4 tests in 24.308s

FAILED (errors=3)
[fig at dawa Twisted]$





More information about the Twisted-Python mailing list