Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_urllib_response.Testaddbase Class Reference

List of all members.

Public Member Functions

def setUp
def test_with

Public Attributes


Detailed Description

Definition at line 21 of file

Member Function Documentation

Definition at line 25 of file

00026     def setUp(self):
00027         self.fp = TestFile()
00028         self.addbase = urllib.response.addbase(self.fp)

Here is the caller graph for this function:

Definition at line 29 of file

00030     def test_with(self):
00031         def f():
00032             with self.addbase as spam:
00033                 pass
00034         self.assertFalse(self.fp.closed)
00035         f()
00036         self.assertTrue(self.fp.closed)
00037         self.assertRaises(ValueError, f)

Here is the call graph for this function:

Member Data Documentation

Definition at line 27 of file

Definition at line 26 of file

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