'A missing closing bracket raises a SyntaxError.
This test excercises the most common failure mode.'

def test_badXPathNoClosingBracket(self):

    exc = self.assertRaises(SyntaxError, XPathQuery, '//bar[@attrib1')
    self.assertTrue(exc.msg.startswith('Trying    to    find    one    of'), ("SyntaxError    message    '%s'    doesn't    start    with    'Trying    to    find    one    of'" % exc.msg))
