code: def test_initial_capital_set():
      s = mock.MagicMock()
      data = pd.DataFrame(
          index=pd.date_range("2010-01-01", periods=5),
          columns=["a", "b"],
          data=100,
      )
  
      actual = bt.Backtest(
          s, data, initial_capital=302, progress_bar=False
      )
      actual.run()
  
      s = actual.strategy
  
      s.adjust.assert_called_with(302)
  
file_path: bt/tests/test_backtest.py
imports: from __future__ import division
  import numpy
  import pandas
  import pytest
  import random
  from unittest import mock
  import bt
label_desc: Use image node_id 4 for calling a global function with example usage: test_initial_capital_set() without return types