'Test that the parser raises for invalid input.'

def testFailedParser(self):

    for expression in ('filename    contains    "foo', '(filename    contains    "foo"    ', 'filename    contains    foo    or    '):
        parser = lexer.SearchParser(expression)
        self.assertRaises(lexer.ParseError, parser.Parse)
