def test_index_converter_sz(self): yahoo_index = YahooStock._index_converter('sz000010') assert_that(yahoo_index, equal_to('000010.sz'))
def test_index_converter_sh(self): yahoo_index = YahooStock._index_converter('sh600010') assert_that(yahoo_index, equal_to('600010.ss'))