def METHOD_NAME(self):
    with tempfile.TemporaryDirectory() as td:
        sample = TimeBucketizer(datetime.timedelta(minutes=1), td, "hasher", "4")
        for _ in range(3201):
            sample.add_record(SampleCSViableClass())
        fileContent = sample.get_records(
            datetime.datetime.now(),
            datetime.datetime.now(),
            "hasher",
            td,
            datetime.timedelta(minutes=1),
            SampleCSViableClass,
        )
        to_compare = [SampleCSViableClass()] * 3200
        self.assertEqual(
            fileContent,
            to_compare,
            "Buffer overload, did not write the file and reset the buffer.",
        )