Skip to content

Commit 97e87b8

Browse files
committed
TST: simply some yahoo network tests
1 parent 0dfa193 commit 97e87b8

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

pandas/io/tests/test_data.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -188,22 +188,14 @@ def test_get_components_nasdaq_100(self):
188188
def test_get_data_single_symbol(self):
189189
#single symbol
190190
#http://finance.yahoo.com/q/hp?s=GOOG&a=09&b=08&c=2010&d=09&e=10&f=2010&g=d
191-
df = web.get_data_yahoo('GOOG')
192-
self.assertEqual(df.Volume.ix['OCT-08-2010'], 2859200)
191+
# just test that we succeed
192+
web.get_data_yahoo('GOOG')
193193

194194
@network
195195
def test_get_data_multiple_symbols(self):
196+
# just test that we succeed
196197
sl = ['AAPL', 'AMZN', 'GOOG']
197-
pan = web.get_data_yahoo(sl, '2012')
198-
199-
def testit():
200-
ts = pan.Close.GOOG.index[pan.Close.AAPL > pan.Close.GOOG]
201-
self.assertEquals(ts[0].dayofyear, 96)
202-
203-
if hasattr(pan.Close, 'GOOG') and hasattr(pan.Close, 'AAPL'):
204-
testit()
205-
else:
206-
self.assertRaises(AttributeError, testit)
198+
web.get_data_yahoo(sl, '2012')
207199

208200
@network
209201
def test_get_data_multiple_symbols_two_dates(self):

0 commit comments

Comments
 (0)