def loadData(s_symbol): d_data = providers.get().load(s_symbol) quotes, dates = [[], []] for date in sorted(d_data): dates.append(date2num(date)) quotes.append(d_data[date][4]) return [dates, quotes]
def test_should_have_get_method(self): locator.get()
def test_locator_should_return_provider(self): provider = locator.get() assert isinstance(provider, base.Provider)