def test_points(self): from pyEX import points with patch('requests.get') as mock: mock.return_value = MagicMock() mock.return_value.status_code = 200 points() points('aapl') points('aapl', 'test')
def test_points(self): from pyEX import points with patch("requests.get") as mock: mock.return_value = MagicMock() mock.return_value.status_code = 200 points() points("aapl") points("aapl", "test")