#NEWLINE# def test_ok_duplicate( self ) : #NEWLINE# #INDENT# opt = StrOpt ( 'foo' ) #NEWLINE# self . conf . register_cli_opt ( opt ) #NEWLINE# self . conf . register_cli_opt ( opt ) #NEWLINE# self . conf ( [ ] ) #NEWLINE# self . assertTrue ( hasattr ( self . conf , 'foo' ) ) #NEWLINE# self . assertEquals ( self . conf . foo , None )