@@ -146,12 +146,17 @@ def test_get_underlying_price(self):
146
146
raise nose .SkipTest (e )
147
147
self .assertTrue (isinstance (quote_price , float ))
148
148
149
- def test_sample_page_price_quote_time1 (self ):
150
149
# Tests the weekend quote time format
151
150
price , quote_time = self .aapl ._underlying_price_and_time_from_url (self .html1 )
152
151
self .assertTrue (isinstance (price , (int , float , complex )))
153
152
self .assertTrue (isinstance (quote_time , (datetime , pd .Timestamp )))
154
153
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
+
155
160
def test_chop (self ):
156
161
# regression test for #7625
157
162
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):
169
174
self .assertTrue (isinstance (chopped , pd .DataFrame ))
170
175
self .assertTrue (len (chopped ) > 1 )
171
176
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
-
179
177
def test_sample_page_chg_float (self ):
180
178
# Tests that numeric columns with comma's are appropriately dealt with
181
179
self .assertEqual (self .data1 ['Chg' ].dtype , 'float64' )
0 commit comments