Lines Matching refs:adler32
42 self.assertEqual(zlib.adler32(b""), zlib.adler32(b"", 1))
43 self.assertTrue(zlib.adler32(b"abc", 0xffffffff))
46 self.assertEqual(zlib.adler32(b"", 0), 0)
47 self.assertEqual(zlib.adler32(b"", 1), 1)
48 self.assertEqual(zlib.adler32(b"", 432), 432)
53 self.assertEqual(zlib.adler32(b"penguin", 0), 0x0bcf02f6)
54 self.assertEqual(zlib.adler32(b"penguin", 1), 0x0bd602f7)
57 self.assertEqual(zlib.adler32(b"penguin"),zlib.adler32(b"penguin",1))
64 self.assertEqual(zlib.adler32(foo+foo), 3573550353)
65 self.assertEqual(zlib.adler32(b'spam'), 72286642)
82 self.assertEqual(zlib.adler32(data), 2256789997)
94 self.assertRaises(TypeError, zlib.adler32)
99 self.assertRaises(TypeError, zlib.adler32, arg)