Added implementation for catch: param
This commit is contained in:
@@ -116,6 +116,10 @@ class YamlTestCase(ElasticTestCase):
|
|||||||
raise SkipTest(reason)
|
raise SkipTest(reason)
|
||||||
|
|
||||||
def run_catch(self, catch, exception):
|
def run_catch(self, catch, exception):
|
||||||
|
if catch == 'param':
|
||||||
|
self.assertIsInstance(exception, TypeError)
|
||||||
|
return
|
||||||
|
|
||||||
self.assertIsInstance(exception, TransportError)
|
self.assertIsInstance(exception, TransportError)
|
||||||
if catch in CATCH_CODES:
|
if catch in CATCH_CODES:
|
||||||
self.assertEquals(CATCH_CODES[catch], exception.status_code)
|
self.assertEquals(CATCH_CODES[catch], exception.status_code)
|
||||||
|
|||||||
Reference in New Issue
Block a user