def test_bonusIssueDF(self): from pyEX import bonusIssueDF with patch('requests.get') as mock, \ patch('pickle.dump'): mock.return_value = MagicMock() mock.return_value.status_code = 200 bonusIssueDF() bonusIssueDF(SYMBOL) bonusIssueDF(SYMBOL, 'test')
def test_bonusIssueDF(self): from pyEX import bonusIssueDF with patch("requests.get") as mock, patch("pickle.dump"): mock.return_value = MagicMock() mock.return_value.status_code = 200 bonusIssueDF() bonusIssueDF(SYMBOL) bonusIssueDF(SYMBOL, "test")