def METHOD_NAME(self):
    invalid_expressions = [
        "a:",
        "**",
        ".",
        "",
    ]
    for expression in invalid_expressions:
        with self.subTest(expression=expression):
            with self.assertRaises(ValueError):
                parse(expression)