def METHOD_NAME(self):
    """
    set the excel content, read it using the raw_content method, and check it against the sample data
    """
    self.expf2d.set_content(self.sample_table.get("attr1"), self.sample_table.get("attr2"),
                            self.sample_table.get("labels1"), self.sample_table.get("labels2"),
                            self.sample_table.get("alphaLevel"), self.sample_table.get("minFreq"),
                            self.sample_table.get("minFreqType"), self.sample_table.get("data"))
    self.expf2d_flat.set_content_flat(self.sample_flat.get("headings"), self.sample_flat.get("alphaLevel"),
                                      self.sample_flat.get("minFreq"), self.sample_flat.get("minFreqType"),
                                      self.sample_flat.get("data"))
    # save file
    # self.expf2d._wb.save("/tmp/test_wb.xlsx")
    # self.expf2d_flat._wb.save("/tmp/test_wb_flat.xlsx")
    # -------------------------
    # check data for table mode
    # -------------------------
    raw_content = self.expf2d.raw_content()
    wb = load_workbook(filename=BytesIO(raw_content))
    sheet = wb.active
    labels1 = iter(self.sample_table.get("labels1"))
    labels2 = iter(self.sample_table.get("labels2"))
    start_row = 1
    # find the first row of data table by looking for the first row label in the first column
    for r in range(1, sheet.max_row):
        if sheet.cell(row=r, column=1).internal_value == self.sample_table.get("labels1")[0]:
            start_row = r
            break
    # check whether labels1 match
    row_ind = 0
    for label in labels1:
        self.assertEqual(sheet.cell(row=start_row + row_ind, column=1).internal_value, label)
        row_ind += 1
    # check whether labels2 match
    col_ind = 2
    for label in labels2:
        self.assertEqual(sheet.cell(row=start_row - 1, column=col_ind).internal_value, label)
        col_ind += 3
    # check whether data cells match
    sample_data = self.sample_table.get("data")
    row_ind = 0
    for doc_row in iter(sample_data):
        col_ind = 2
        for triad in doc_row:
            for val in triad:
                self.assertEqual(val, sheet.cell(
                    row=start_row + row_ind, column=col_ind).internal_value)
                col_ind += 1
        row_ind += 1