Back to index

python3.2  3.2.2
Public Member Functions | Static Public Attributes
test.test_bisect.TestErrorHandlingPython Class Reference
Inheritance diagram for test.test_bisect.TestErrorHandlingPython:
Inheritance graph
[legend]
Collaboration diagram for test.test_bisect.TestErrorHandlingPython:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_non_sequence
def test_len_only
def test_get_only
def test_cmp_err
def test_arg_parsing

Static Public Attributes

 module = py_bisect

Detailed Description

Definition at line 268 of file test_bisect.py.


Member Function Documentation

Definition at line 263 of file test_bisect.py.

00263 
00264     def test_arg_parsing(self):
00265         for f in (self.module.bisect_left, self.module.bisect_right,
00266                   self.module.insort_left, self.module.insort_right):
00267             self.assertRaises(TypeError, f, 10)

Here is the call graph for this function:

Definition at line 257 of file test_bisect.py.

00257 
00258     def test_cmp_err(self):
00259         seq = [CmpErr(), CmpErr(), CmpErr()]
00260         for f in (self.module.bisect_left, self.module.bisect_right,
00261                   self.module.insort_left, self.module.insort_right):
00262             self.assertRaises(ZeroDivisionError, f, seq, 10)

Here is the call graph for this function:

Definition at line 252 of file test_bisect.py.

00252 
00253     def test_get_only(self):
00254         for f in (self.module.bisect_left, self.module.bisect_right,
00255                   self.module.insort_left, self.module.insort_right):
00256             self.assertRaises(TypeError, f, GetOnly(), 10)

Here is the call graph for this function:

Definition at line 247 of file test_bisect.py.

00247 
00248     def test_len_only(self):
00249         for f in (self.module.bisect_left, self.module.bisect_right,
00250                   self.module.insort_left, self.module.insort_right):
00251             self.assertRaises(TypeError, f, LenOnly(), 10)

Here is the call graph for this function:

Definition at line 242 of file test_bisect.py.

00242 
00243     def test_non_sequence(self):
00244         for f in (self.module.bisect_left, self.module.bisect_right,
00245                   self.module.insort_left, self.module.insort_right):
00246             self.assertRaises(TypeError, f, 10, 10)

Here is the call graph for this function:


Member Data Documentation

Reimplemented from test.test_bisect.TestErrorHandling.

Definition at line 269 of file test_bisect.py.


The documentation for this class was generated from the following file: