def init_capfile(self, layers=0):
        tfile = create_pcap()
        self.capfile = savefile.load_savefile(tfile, layers=layers)
        tfile.close()
        if os.path.exists(tfile.name):
            os.unlink(tfile.name)
Initialise the capture file.
dataset/ETHPy150Open kisom/pypcapfile/pcapfile/test/savefile_test.py/TestCase.init_capfile