def test_get_report_url(self): url = wsj._get_report_url("C6L.SI", "annual", "balance-sheet") self.assertEqual(url, "http://quotes.wsj.com/SG/XSES/C6L/financials/annual/balance-sheet")
def test_get_report_url_nasdaq(self): url = wsj._get_report_url("MSFT", "quarter", "cash-flow") self.assertEqual(url, "http://quotes.wsj.com/MSFT/financials/quarter/cash-flow")