#NEWLINE# def test_optionsDefaultToProtocolValue( self ) : #NEWLINE# #INDENT# '\n        Many options default to a value calculated from the protocol name.\n        ' #NEWLINE# config = tap2rpm . MyOptions ( ) #NEWLINE# config . parseOptions ( [ '--tapfile' , 'sausages.tap' , '--protocol' , 'eggs' ] ) #NEWLINE# self . assertEquals ( config [ 'tapfile' ] , 'sausages.tap' ) #NEWLINE# self . assertEquals ( config [ 'maintainer' ] , 'tap2rpm' ) #NEWLINE# self . assertEquals ( config [ 'protocol' ] , 'eggs' ) #NEWLINE# self . assertEquals ( config [ 'description' ] , 'A TCP server for eggs' ) #NEWLINE# self . assertEquals ( config [ 'long_description' ] , 'Automatically created by tap2rpm' ) #NEWLINE# self . assertEquals ( config [ 'set-version' ] , '1.0' ) #NEWLINE# self . assertEquals ( config [ 'rpmfile' ] , 'twisted-eggs' ) #NEWLINE# self . assertEquals ( config [ 'type' ] , 'tap' ) #NEWLINE# self . assertEquals ( config [ 'quiet' ] , False ) #NEWLINE# self . assertEquals ( config [ 'twistd_option' ] , 'file' ) #NEWLINE# self . assertEquals ( config [ 'release-name' ] , 'twisted-eggs-1.0' )