code: def test2LineBreak(self):
      barFeed = self.__getFeed()
      bars = barFeed[LineBreakTestCase.Instrument]
      lineBreak = linebreak.LineBreak(bars, 2)
      barFeed.loadAll()
  
      self.assertEqual(len(lineBreak), 77)
      self.assertEqual(bars[0].getLow(), lineBreak[0].getLow())
      self.assertEqual(bars[0].getHigh(), lineBreak[0].getHigh())
      self.assertEqual(
          bars[0].getClose() > bars[0].getOpen(), lineBreak[0].isWhite()
      )
      self.assertEqual(
          bars[0].getDateTime(), lineBreak[0].getDateTime()
      )
  
      self.assertEqual(lineBreak[76].getLow(), 13.81)
      self.assertEqual(lineBreak[76].getHigh(), 13.99)
      self.assertEqual(lineBreak[76].isWhite(), False)
      self.assertEqual(lineBreak[76].isBlack(), True)
  
file_path: pyalgotrade/testcases/technical_linebreak_test.py
imports: import datetime
  from .None import common
  from pyalgotrade.technical import linebreak
  from pyalgotrade.barfeed import yahoofeed
  from pyalgotrade import dataseries
  from pyalgotrade import bar
  from pyalgotrade.dataseries import bards
label_desc: Use image node_id 2 for calling the LineBreakTestCase obj's underlying member method code with example usage: obj.test2LineBreak() without return types