@@ -146,12 +146,17 @@ def test_get_underlying_price(self):
146146 raise nose .SkipTest (e )
147147 self .assertTrue (isinstance (quote_price , float ))
148148
149- def test_sample_page_price_quote_time1 (self ):
150149 # Tests the weekend quote time format
151150 price , quote_time = self .aapl ._underlying_price_and_time_from_url (self .html1 )
152151 self .assertTrue (isinstance (price , (int , float , complex )))
153152 self .assertTrue (isinstance (quote_time , (datetime , pd .Timestamp )))
154153
154+ # Tests the EDT page format
155+ # regression test for #8741
156+ price , quote_time = self .aapl ._underlying_price_and_time_from_url (self .html2 )
157+ self .assertTrue (isinstance (price , (int , float , complex )))
158+ self .assertTrue (isinstance (quote_time , (datetime , pd .Timestamp )))
159+
155160 def test_chop (self ):
156161 # regression test for #7625
157162 self .aapl ._chop_data (self .data1 , above_below = 2 , underlying_price = np .nan )
@@ -169,13 +174,6 @@ def test_chop_out_of_strike_range(self):
169174 self .assertTrue (isinstance (chopped , pd .DataFrame ))
170175 self .assertTrue (len (chopped ) > 1 )
171176
172- def test_sample_page_price_quote_time2 (self ):
173- # Tests the EDT page format
174- # regression test for #8741
175- price , quote_time = self .aapl ._underlying_price_and_time_from_url (self .html2 )
176- self .assertTrue (isinstance (price , (int , float , complex )))
177- self .assertTrue (isinstance (quote_time , (datetime , pd .Timestamp )))
178-
179177 def test_sample_page_chg_float (self ):
180178 # Tests that numeric columns with comma's are appropriately dealt with
181179 self .assertEqual (self .data1 ['Chg' ].dtype , 'float64' )
0 commit comments