Fix compatibility with Python 2.6

test_no_tag_raises_error in hooks_tests was using self.assertRaises
as a context manager, which is only valid in Python 2.7 and above

see:
http://docs.python.org/2/library/unittest.html#unittest.TestCase.assertRaises