<s> '''<STR_LIT>''' <EOL> import unittest <EOL> from nose . tools import nottest , eq_ <EOL> import insights . sources . backtest . yahoo as yahoo <EOL> class YahooPricesTestCase ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . sids = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> self . start = '<STR_LIT>' <EOL> self . end = '<STR_LIT>' <EOL> self . source = yahoo . YahooPrices ( self . sids , { } ) <EOL> @ nottest <EOL> def _check_mapping ( self , mapping ) : <EOL> self . assertIsInstance ( mapping , dict ) <EOL> eq_ ( sorted ( mapping . keys ( ) ) , <EOL> sorted ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] ) ) <EOL> for key , pair in mapping . iteritems ( ) : <EOL> self . assertIsInstance ( pair , tuple ) <EOL> self . assertIsInstance ( pair [ <NUM_LIT:1> ] , str ) <EOL> def test_intialize ( self ) : <EOL> self . _check_mapping ( self . source . mapping ) <EOL> def test_generate_data ( self ) : <EOL> pass </s>
