def test_algoidef_embed(self): ps = pdf_algo.PDF_stego(s_base + ".pdf", rl, output=s_embed, improve=True) result = ps.embed(self.defaultMessage, self.defaultKey) self.assertTrue(result > 0)
def test_algo_customnbit_embed(self): ps = pdf_algo.PDF_stego(s_long + ".pdf", rl, output=s_embed, nbits=self.nbits) result = ps.embed(self.defaultMessage, self.defaultKey) self.assertTrue(result > 0)
def test_algo_customred_embed(self): ps = pdf_algo.PDF_stego(s_long + ".pdf", rl, output=s_embed, red=self.redundancy) result = ps.embed(self.defaultMessage, self.defaultKey) self.assertTrue(result > 0)
def test_algoi_customrange_extract(self): ps = pdf_algo.PDF_stego(s_embed, rl, output=s_msg, improve=True, customrange=True) result = ps.extract(self.defaultKey) self.assertEqual(result, 0)
def test_algoi_customrange_embed(self): ps = pdf_algo.PDF_stego(s_long + ".pdf", rl, output=s_embed, improve=True, customrange=True) result = ps.embed(self.defaultMessage, self.defaultKey, norandom=True) self.assertTrue(result > 0)
def test_algo_full_extract(self): ps = pdf_algo.PDF_stego(s_embed, rl, output=s_msg, red=self.redundancy, nbits=self.nbits) result = ps.extract(self.defaultKey) self.assertEqual(result, 0)
def test_algo_full_embed(self): ps = pdf_algo.PDF_stego(s_long + ".pdf", rl, output=s_embed, red=self.redundancy, nbits=self.nbits) result = ps.embed(self.defaultMessage, self.defaultKey, norandom=True) self.assertTrue(result > 0)
def test_algoi_full_extract(self): ps = pdf_algo.PDF_stego(s_embed, rl, output=s_msg, improve=True, red=self.redundancy, nbits=self.nbits, customrange=True) result = ps.extract(self.defaultKey) self.assertEqual(result, 0)
def test_algo_customnorandom_extract(self): ps = pdf_algo.PDF_stego(s_embed, rl, output=s_msg) result = ps.extract(self.defaultKey) self.assertEqual(result, 0)