@mock.patch('betdaq.endpoints.account.Account.process_response')
@mock.patch('betdaq.endpoints.account.Account.request', return_value=mock.Mock())
def test_get_account_transactions_by_id(self, mock_request, mock_process_response):
    self.account.get_account_transactions_by_id(TransactionId=1)
    mock_request.assert_called_once_with('ListAccountPostingsById', {'TransactionId': 1}, secure=True)
    assert (mock_process_response.call_count == 1)
@mock.patch('betdaq.endpoints.account.Account.process_response')
@mock.patch('betdaq.endpoints.account.Account.request', return_value=mock.Mock())
def test_get_account_transactions_by_id(self, mock_request, mock_process_response):
    self.account.get_account_transactions_by_id(TransactionId=1)
    mock_request.assert_called_once_with('ListAccountPostingsById', {'TransactionId': 1}, secure=True)
    assert (mock_process_response.call_count == 1)