def METHOD_NAME(self):
    with tempfile.TemporaryDirectory() as td:
        sample = TimeBucketizer(datetime.timedelta(minutes=1), td, "hasher", "4")
        for _ in range(5):
            sample.add_record(SampleCSViableClass())
        sample.force_flush()
        fileContent = sample.get_records(
            datetime.datetime.now(),
            datetime.datetime.now(),
            "hasher",
            td,
            datetime.timedelta(minutes=1),
            SampleCSViableClass,
        )
        to_compare = [SampleCSViableClass()] * 5
        self.assertEqual(
            fileContent,
            to_compare,
            "Destroy method did not flush the remaining files stored in the buffer",
        )