def test_price_to_earnings_ratio_success(self): with self.client: stock = Stock('NASDAQ', 'AAPL') self.assertTrue(stock._get_price_to_earnings_ratio())
def test_price_to_earnings_ratio_fail(self): with self.client: stock = Stock('NASDAQ', 'TSLAA') self.assertFalse(stock._get_price_to_earnings_ratio())