#NEWLINE# def test_alt_names( self ) : #NEWLINE# #INDENT# xml0 = GET #NEWLINE# o = ofc . OFCapableSwitchType . from_xml ( xml0 ) #NEWLINE# eq_ ( o . logical_switches , getattr ( o , 'logical_switches' ) ) #NEWLINE# eq_ ( o . logical_switches , getattr ( o , 'logical-switches' ) )