def METHOD_NAME(self):
    """outputs csv based on inputs of
    headings and beautiful_soup rows
    """
    mockpath = "{0}/mock_life.csv".format(self.tempdir)
    with open(self.life_page, "r") as f:
        mockpage = f.read()
    table = bs(mockpage, "html.parser").find("table").find("table")
    rows = table.findAll("tr")[2:]
    output_csv(mockpath, self.life_headings, rows)
    self.assertTrue(os.path.isfile(mockpath))
    with open(mockpath, "r") as f:
        reader = csv.reader(f)
        data = [row for row in reader]
    for sample in self.sample_life_results:
        self.assertEqual(
            data[sample], self.sample_life_results[sample].split(",")
        )