docstr: Test writing data with the same date as existing data in our file.
docstr_tok: ["Test","writing","data","with","the","same","date","as","existing","data","in","our","file","."]
code: def test_append_to_same_day(self):
      """
      Test writing data with the same date as existing data in our file.
      """
      sid = 1
  
      first_minute = self.market_opens[TEST_CALENDAR_START]
      data = DataFrame(
          data={
              "open": [10.0],
              "high": [20.0],
              "low": [30.0],
              "close": [40.0],
              "volume": [50.0],
          },
          index=[first_minute],
      )
      self.writer.write_sid(sid, data)
  
      # Write data in the same day as the previous minute
      second_minute = first_minute + Timedelta(minutes=1)
      new_data = DataFrame(
          data={
              "open": [5.0],
              "high": [10.0],
              "low": [3.0],
              "close": [7.0],
              "volume": [10.0],
          },
          index=[second_minute],
      )
      self.writer.write_sid(sid, new_data)
  
      open_price = self.reader.get_value(sid, second_minute, "open")
      self.assertEquals(5.0, open_price)
      high_price = self.reader.get_value(sid, second_minute, "high")
      self.assertEquals(10.0, high_price)
      low_price = self.reader.get_value(sid, second_minute, "low")
      self.assertEquals(3.0, low_price)
      close_price = self.reader.get_value(sid, second_minute, "close")
      self.assertEquals(7.0, close_price)
      volume_price = self.reader.get_value(sid, second_minute, "volume")
      self.assertEquals(10.0, volume_price)
  
imports: from datetime import timedelta
  import os
  from numpy import arange, array, int64, float64, full, nan, transpose, zeros
  from numpy.testing import assert_almost_equal, assert_array_equal
  from pandas import DataFrame, DatetimeIndex, Timestamp, Timedelta, NaT, date_range
  from zipline.data.bar_reader import NoDataForSid, NoDataOnDate
  from zipline.data.minute_bars import BcolzMinuteBarMetadata, BcolzMinuteBarWriter, BcolzMinuteBarReader, BcolzMinuteOverlappingData, US_EQUITIES_MINUTES_PER_DAY, BcolzMinuteWriterColumnMismatch, H5MinuteBarUpdateWriter, H5MinuteBarUpdateReader
  from zipline.testing.fixtures import WithAssetFinder, WithInstanceTmpDir, WithTradingCalendars, ZiplineTestCase
label_desc: Use image node_id 13 for calling the BcolzMinuteBarTestCase obj's underlying member method code with example usage: obj.test_append_to_same_day() without return types