MCPcopy Create free account
hub / github.com/apache/qpid-proton / assertRaises

Method assertRaises

python/tests/proton_tests/url.py:102–107  ·  view source on GitHub ↗
(self, exception, function, *args, **kwargs)

Source from the content-addressed store, hash-verified

100 self.assertUrl(u, None, None, None, None, None, None)
101
102 def assertRaises(self, exception, function, *args, **kwargs):
103 try:
104 function(*args, **kwargs)
105 assert False, "Expected exception %s" % exception.__name__
106 except exception:
107 pass
108
109 def testMissing(self):
110 self.assertUrl(Url(defaults=False), None, None, None, None, None, None)

Callers 7

testPropertyDictMethod · 0.80
testAnnotationDictMethod · 0.80
testSymbolListMethod · 0.80
testUbyteMethod · 0.80
testUshortMethod · 0.80
testUintMethod · 0.80
testUlongMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected