[Shtoom] unit tests

Bryce O'Whielacronx zooko at zooko.com
Mon Sep 6 18:09:23 CEST 2004


Shtoom unit tests hang.  It might have something to do with my  
networking setup.  I'll investigate later, but I wanted to report it  
right away.

Here is the output of "trial shtoom.test":

dialog is <Dialog None->None, None>
callStarted CallCookie1
incoming
callConnected CallCookie1


The output of "trial -v shtoom.test" is appended.

Regards,

Zooko

shtoom.test.test_callcontrol
   TestCallControl
     testInboundRemoteBye ...                                             
ESC[31;1m[ERROR]ESC[0m
     testOutboundLocalBye ...                                             
ESC[31;1m[ERROR]ESC[0m
shtoom.test.test_dougstatemachine
   StateMachineTest
     testBrokenStateMachine ... No matching event for DummyEvent2_2 in  
state second
                                             ESC[32;1m[OK]ESC[0m
     testStateMachine ...                                                 
    ESC[32;1m[OK]ESC[0m
shtoom.test.test_new_sdp
   SDPGeneration
     testIntersectSDP ...                                                 
    ESC[32;1m[OK]ESC[0m
     testParseShowSDP ...                                                 
    ESC[32;1m[OK]ESC[0m
shtoom.test.test_rtcp
   RTCPdecodeCase
     testByeWithReason ...                                                
    ESC[32;1m[OK]ESC[0m
     testCompoundRTCP ...                                                 
    ESC[32;1m[OK]ESC[0m
     testRoundtripBYE ...                                                 
    ESC[32;1m[OK]ESC[0m
     testSDESdecode ...                                                   
    ESC[32;1m[OK]ESC[0m
shtoom.test.test_rtp
   TestRTP
     testNTEencoding ...                                                  
    ESC[32;1m[OK]ESC[0m
shtoom.test.test_sdp
   SDPGeneration
     testSimpleSDP ...                                                    
    ESC[32;1m[OK]ESC[0m
shtoom.test.test_sipaddresses
   AddressParsingTests
     testAddressClass ...                                                 
    ESC[32;1m[OK]ESC[0m
     testParsingAndFormatting ...                                         
    ESC[32;1m[OK]ESC[0m
shtoom.test.test_sipauth
   AuthTest
     test_sipSimpleAuth ...                                               
    ESC[32;1m[OK]ESC[0m
shtoom.test.test_sipdialog
   DialogTests
     testDialogCtor ...                                                   
    ESC[32;1m[OK]ESC[0m
shtoom.test.test_stun
   NetAddressTests
     testNetAddressInit ...                                               
    ESC[32;1m[OK]ESC[0m
     testNetAddressMembership ...                                         
    ESC[32;1m[OK]ESC[0m

======================================================================== 
=======
ERROR: testInboundRemoteBye  
(shtoom.test.test_callcontrol.TestCallControl)
------------------------------------------------------------------------ 
-------
Traceback (most recent call last):
   File "/usr/lib/python2.3/site-packages/twisted/trial/unittest.py",  
line 252, in _runPhase
     stage(*args, **kwargs)
   File "/usr/lib/python2.3/site-packages/twisted/trial/unittest.py",  
line 274, in _main
     self.runner(self.method)
   File "/usr/lib/python2.3/site-packages/twisted/trial/runner.py", line  
104, in runTest
     method()
   File  
"/home/zooko/playground/shtoom/Shtoom/shtoom/shtoom/test/ 
test_callcontrol.py", line 278, in testInboundRemoteBye
     p.boot()
   File  
"/home/zooko/playground/shtoom/Shtoom/shtoom/shtoom/app/phone.py", line  
39, in boot
     self.initOptions(options)
   File  
"/home/zooko/playground/shtoom/Shtoom/shtoom/shtoom/app/base.py", line  
28, in initOptions
     options.optionsStartup(version='%%prog %s'%shtoom.__version__)
   File "/home/zooko/playground/shtoom/Shtoom/shtoom/shtoom/Options.py",  
line 307, in optionsStartup
     (opts, args) = parser.parse_args()
   File "/usr/lib/python2.3/optparse.py", line 1129, in parse_args
     stop = self._process_args(largs, rargs, values)
   File "/usr/lib/python2.3/optparse.py", line 1173, in _process_args
     self._process_short_opts(rargs, values)
   File "/usr/lib/python2.3/optparse.py", line 1256, in  
_process_short_opts
     self.error("no such option: %s" % opt)
   File "/usr/lib/python2.3/optparse.py", line 1296, in error
     sys.exit("%s: error: %s" % (self._get_prog_name(), msg))
SystemExit: trial: error: no such option: -v
======================================================================== 
=======
ERROR: testOutboundLocalBye  
(shtoom.test.test_callcontrol.TestCallControl)
------------------------------------------------------------------------ 
-------
Traceback (most recent call last):
   File "/usr/lib/python2.3/site-packages/twisted/trial/unittest.py",  
line 252, in _runPhase
     stage(*args, **kwargs)
   File "/usr/lib/python2.3/site-packages/twisted/trial/unittest.py",  
line 274, in _main
     self.runner(self.method)
   File "/usr/lib/python2.3/site-packages/twisted/trial/runner.py", line  
104, in runTest
     method()
   File  
"/home/zooko/playground/shtoom/Shtoom/shtoom/shtoom/test/ 
test_callcontrol.py", line 227, in testOutboundLocalBye
     p.boot()
   File  
"/home/zooko/playground/shtoom/Shtoom/shtoom/shtoom/app/phone.py", line  
39, in boot
     self.initOptions(options)
   File  
"/home/zooko/playground/shtoom/Shtoom/shtoom/shtoom/app/base.py", line  
28, in initOptions
     options.optionsStartup(version='%%prog %s'%shtoom.__version__)
   File "/home/zooko/playground/shtoom/Shtoom/shtoom/shtoom/Options.py",  
line 307, in optionsStartup
     (opts, args) = parser.parse_args()
   File "/usr/lib/python2.3/optparse.py", line 1129, in parse_args
     stop = self._process_args(largs, rargs, values)
   File "/usr/lib/python2.3/optparse.py", line 1173, in _process_args
     self._process_short_opts(rargs, values)
   File "/usr/lib/python2.3/optparse.py", line 1256, in  
_process_short_opts
     self.error("no such option: %s" % opt)
   File "/usr/lib/python2.3/optparse.py", line 1296, in error
     sys.exit("%s: error: %s" % (self._get_prog_name(), msg))
SystemExit: trial: error: no such option: -v
------------------------------------------------------------------------ 
-------
Ran 18 tests in 0.525s

FAILED (errors=2)




More information about the Shtoom mailing list