Lines Matching refs:ValueError
152 except ValueError:
243 self.assertRaises(ValueError, hashlib.new, 'spam spam spam spam spam')
254 self.assertRaises(ValueError, get_builtin_constructor, 'test')
264 self.assertRaises(ValueError, get_builtin_constructor, 'md5')
296 self.assertRaises(ValueError, digest, -10)
298 with self.assertRaises((ValueError, OverflowError)):
606 self.assertRaises(ValueError, constructor, salt=salt)
612 self.assertRaises(ValueError, constructor, person=person)
617 self.assertRaises(ValueError, constructor, digest_size=-1)
618 self.assertRaises(ValueError, constructor, digest_size=0)
619 self.assertRaises(ValueError, constructor, digest_size=digest_size+1)
625 self.assertRaises(ValueError, constructor, key=key)
631 self.assertRaises(ValueError, constructor, fanout=-1)
632 self.assertRaises(ValueError, constructor, fanout=256)
636 self.assertRaises(ValueError, constructor, depth=-1)
637 self.assertRaises(ValueError, constructor, depth=0)
638 self.assertRaises(ValueError, constructor, depth=256)
642 self.assertRaises(ValueError, constructor, node_depth=-1)
643 self.assertRaises(ValueError, constructor, node_depth=256)
647 self.assertRaises(ValueError, constructor, inner_size=-1)
648 self.assertRaises(ValueError, constructor, inner_size=digest_size+1)
652 self.assertRaises(ValueError, constructor, leaf_size=-1)
657 self.assertRaises(ValueError, constructor, node_offset=-1)
924 except ValueError:
942 except ValueError:
1029 with self.assertRaisesRegex(ValueError, '.*unsupported.*'):
1040 ValueError, pbkdf2, 'sha1', b'pass', b'salt', 0
1043 ValueError, pbkdf2, 'sha1', b'pass', b'salt', -1
1046 ValueError, pbkdf2, 'sha1', b'pass', b'salt', 1, 0
1049 ValueError, pbkdf2, 'sha1', b'pass', b'salt', 1, -1
1090 with self.assertRaises((ValueError, OverflowError, TypeError)):
1093 with self.assertRaises((ValueError, OverflowError, TypeError)):
1096 with self.assertRaises((ValueError, OverflowError, TypeError)):
1099 with self.assertRaises((ValueError, OverflowError, TypeError)):
1103 with self.assertRaises((ValueError, OverflowError, TypeError)):