Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _run_valid_invalid_tests(self, valid, invalid=[]):
for value, result in valid:
self.assertEqual(parse_id_value(value), result)
for value in invalid:
with self.assertRaises(ParseException):
parse_id_value(value)
def _run_valid_invalid_tests(self, valid, invalid=[]):
for value, result in valid:
self.assertEqual(parse_id_value(value), result)
for value in invalid:
with self.assertRaises(ParseException):
parse_id_value(value)