def METHOD_NAME(self):
    data = make_data()
    builder = make_code_builder(data)
    with NamedTemporaryFile() as tmp_fp:
        builder.to_file(tmp_fp.name)
        other_builder = HuffmanCodeBuilder.from_file(tmp_fp.name)
        self.assertEqual(builder.symbols, other_builder.symbols)