code: def testPickle(self):
      b1 = bar.BasicBar(
          datetime.datetime.now(),
          2,
          3,
          1,
          2.1,
          10,
          5,
          bar.Frequency.DAY,
      )
      b2 = cPickle.loads(cPickle.dumps(b1))
      self.assertEquals(b1.getDateTime(), b2.getDateTime())
      self.assertEquals(b1.getOpen(), b2.getOpen())
      self.assertEquals(b1.getHigh(), b2.getHigh())
      self.assertEquals(b1.getLow(), b2.getLow())
      self.assertEquals(b1.getClose(), b2.getClose())
      self.assertEquals(b1.getVolume(), b2.getVolume())
      self.assertEquals(b1.getAdjClose(), b2.getAdjClose())
      self.assertEquals(b1.getFrequency(), b2.getFrequency())
      self.assertEquals(b1.getPrice(), b2.getPrice())
      self.assertEquals(b1.getOpen(True), b2.getOpen(True))
      self.assertEquals(b1.getHigh(True), b2.getHigh(True))
      self.assertEquals(b1.getLow(True), b2.getLow(True))
      self.assertEquals(b1.getClose(True), b2.getClose(True))
  
file_path: pyalgotrade/testcases/bar_test.py
imports: import datetime
  from six.moves import cPickle
  from .None import common
  from pyalgotrade import bar
label_desc: Use image node_id 4 for calling the BasicBarTestCase obj's underlying member method code with example usage: obj.testPickle() without return types