#NEWLINE# @ network #NEWLINE# def test_get_components_nasdaq_100( self ) : #NEWLINE# #INDENT# raise nose . SkipTest ( 'unreliable test, receive partial components back for nasdaq_100' ) #NEWLINE# df = web . get_components_yahoo ( '^NDX' ) #NEWLINE# self . assertIsInstance ( df , pd . DataFrame ) #NEWLINE# if ( len ( df ) > 1 ) : #NEWLINE# #INDENT# self . assertTrue ( ( 'AAPL' in df . index ) ) #NEWLINE# self . assertTrue ( ( 'GOOG' in df . index ) ) #NEWLINE# self . assertTrue ( ( 'AMZN' in df . index ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# expected = DataFrame ( { #NEWLINE# #INDENT# 'exchange' : 'N/A' , #NEWLINE# 'name' : '@^NDX' , #NEWLINE# #UNINDENT# } , index = [ '@^NDX' ] ) #NEWLINE# assert_frame_equal ( df , expected )