Searched defs:assertRaises (Results 1 - 4 of 4) sorted by relevance

/external/python/cpython2/Lib/unittest/
H A Dcase.py99 """A context manager used to implement TestCase.assertRaises* methods."""
446 def assertRaises(self, excClass, callableObj=None, *args, **kwargs): member in class:TestCase
457 with self.assertRaises(SomeException):
464 with self.assertRaises(SomeException) as cm:
620 failUnlessRaises = _deprecate(assertRaises)
/external/flatbuffers/tests/
H A Dpy_test.py42 def assertRaises(test_case, fn, exception_class): function
1142 assertRaises(self, lambda: b.StartObject(0),
1147 assertRaises(self, lambda: b.EndObject(),
1153 assertRaises(self, lambda: b.PrependStructSlot(0, 1, 0),
1158 assertRaises(self, lambda: b.PrependUOffsetTRelative(1),
1165 assertRaises(self, lambda: b.CreateString(s),
1170 assertRaises(self, lambda: b.Output(),
/external/python/cpython2/Lib/test/
H A Dtest_optparse.py80 def assertRaises(self, member in class:BaseTest
185 self.assertRaises(func, args, None, TypeError, expected_message)
206 self.assertRaises(make_option, args, kwargs,
383 self.assertRaises(self.parser.remove_option, ('foo',), None,
1006 self.assertRaises(self.parser.add_option_group, (group,), None,
1303 err = self.assertRaises(
1321 self.assertRaises(
1616 self.assertRaises(
1628 self.assertRaises(
1632 self.assertRaises(
[all...]
/external/python/cpython2/Objects/
H A Dsetobject.c2386 #define assertRaises(call_return_value, exception) \ macro
2424 assertRaises(PySet_New(Py_None) == NULL, PyExc_TypeError);
2425 assertRaises(PyFrozenSet_New(Py_None) == NULL, PyExc_TypeError);
2429 assertRaises(PySet_Discard(ob, dup) == -1, PyExc_TypeError);
2430 assertRaises(PySet_Contains(ob, dup) == -1, PyExc_TypeError);
2431 assertRaises(PySet_Add(ob, dup) == -1, PyExc_TypeError);
2453 assertRaises(PySet_Clear(f) == -1, PyExc_SystemError);
2454 assertRaises(_PySet_Update(f, dup) == -1, PyExc_SystemError);
2457 assertRaises(PySet_Add(f, elem) == -1, PyExc_SystemError);
2480 assertRaises(PySet_Siz
2518 #undef assertRaises macro
[all...]

Completed in 218 milliseconds