Add debug info to catch: // handling in yaml tests

This commit is contained in:
Honza Král
2015-05-08 21:41:13 +02:00
parent c593911876
commit 8b85d888b5
@@ -168,7 +168,7 @@ class YamlTestCase(ElasticsearchTestCase):
if catch in CATCH_CODES:
self.assertEquals(CATCH_CODES[catch], exception.status_code)
elif catch[0] == '/' and catch[-1] == '/':
self.assertTrue(re.search(catch[1:-1], repr(exception.info)))
self.assertTrue(re.search(catch[1:-1], repr(exception.info)), '%s not in %r' % (catch, exception.info))
self.last_response = exception.info
def run_gt(self, action):