Lines Matching refs:ValueError
67 with self.assertRaises(ValueError):
70 with self.assertRaises(ValueError):
77 self.assertRaises(ValueError, fmt.format, "{0!h}", 'test')
171 raise ValueError("unused arguments")
177 self.assertRaises(ValueError, fmt.format, "{0}{i}{1}", 10, 20, i=100, j=0)
178 self.assertRaises(ValueError, fmt.format, "{0}", 10, 20)
179 self.assertRaises(ValueError, fmt.format, "{0}", 10, 20, i=100)
180 self.assertRaises(ValueError, fmt.format, "{i}", 10, 20, i=100)
186 with self.assertRaises(ValueError) as err:
278 raises(ValueError, s.substitute, dict(who='tim'))
280 raises(ValueError, s.substitute, dict(who='tim'))
282 raises(ValueError, s.substitute, dict(who='tim'))
286 raises(ValueError, s.substitute, dict(who='tim'))
288 raises(ValueError, s.substitute, dict(who='tim'))
306 self.assertRaises(ValueError, s.substitute, d)
329 self.assertRaises(ValueError, s.substitute, m)
331 self.assertRaises(ValueError, s.substitute, m)
358 self.assertRaises(ValueError, s.substitute, {})
359 self.assertRaises(ValueError, s.safe_substitute, {})
411 with self.assertRaises(ValueError) as err:
469 raises(ValueError, s.substitute, dict(gift='bud', who='you'))