code: def test_daily_txns_with_bar_data(self):
      daily_txn = daily_txns_with_bar_data(
          self.transactions, self.market_data
      )
      expected = DataFrame(
          data=[
              ["A", 100000, 1.0, 1000000.0],
              ["A", 100000, 1.0, 2000000.0],
              ["A", 100000, 1.0, 3000000.0],
          ],
          columns=["symbol", "amount", "price", "volume"],
          index=self.dates,
      )
  
      assert_frame_equal(daily_txn, expected, check_less_precise=True)
  
file_path: pyfolio/pyfolio/tests/test_capacity.py
imports: from __future__ import division
  from unittest import TestCase
  from nose_parameterized import parameterized
  from pandas import Series, DataFrame, date_range, datetime, concat
  from pandas.util.testing import assert_frame_equal, assert_series_equal
  from pyfolio.capacity import days_to_liquidate_positions, get_max_days_to_liquidate_by_ticker, get_low_liquidity_transactions, daily_txns_with_bar_data, apply_slippage_penalty
label_desc: Use image node_id 4 for calling the CapacityTestCase obj's underlying member method code with example usage: obj.test_daily_txns_with_bar_data() without return types