def test_invalid_name(self):
    with self.assertRaisesRegex(ValueError, "Task name 'invalid/name' contains invalid characters. Must match regex: .*"):
        self.add_task('invalid/name', self.function_source)
def test_invalid_name(self):
    with self.assertRaisesRegex(ValueError, "Task name 'invalid/name' contains invalid characters. Must match regex: .*"):
        self.add_task('invalid/name', self.function_source)