add local assertRaisesRegexp() on python older then 2.7

When running tests on python older then 2.7, monkeypatch
unittest.TestCase class to include assertRaisesRegexp() method.