def test_dfi2(self): dfi = DataFormatIdentifier(compression=15, encryption=15) self.assertEqual(dfi.get_byte(), b'\xFF')
def test_dfi(self): dfi = DataFormatIdentifier(compression=1, encryption=2) self.assertEqual(dfi.get_byte(), b'\x12')
def test_dfi2(self): dfi = DataFormatIdentifier(compression=15, encryption=15) self.assertEqual(dfi.get_byte(), b'\xFF')
def test_dfi(self): dfi = DataFormatIdentifier(compression=1, encryption=2) self.assertEqual(dfi.get_byte(), b'\x12')