Back to index

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

List of all members.

Public Member Functions

def setUp
def tearDown
def make_server

Public Attributes

 handler
 sio
 server

Static Public Attributes

 handler_class = None

Detailed Description

Definition at line 346 of file test_nntplib.py.


Member Function Documentation

def test.test_nntplib.MockedNNTPTestsMixin.make_server (   self,
  args,
  kwargs 
)

Definition at line 358 of file test_nntplib.py.

00358 
00359     def make_server(self, *args, **kwargs):
00360         self.handler = self.handler_class()
00361         self.sio = _NNTPServerIO(self.handler)
00362         # Using BufferedRWPair instead of BufferedRandom ensures the file
00363         # isn't seekable.
00364         file = io.BufferedRWPair(self.sio, self.sio)
00365         self.server = nntplib._NNTPBase(file, 'test.server', *args, **kwargs)
00366         return self.server
00367 

Here is the caller graph for this function:

Definition at line 350 of file test_nntplib.py.

00350 
00351     def setUp(self):
00352         super().setUp()
00353         self.make_server()

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 354 of file test_nntplib.py.

00354 
00355     def tearDown(self):
00356         super().tearDown()
00357         del self.server

Here is the caller graph for this function:


Member Data Documentation

Definition at line 359 of file test_nntplib.py.

Reimplemented in test.test_nntplib.NNTPv2Tests, and test.test_nntplib.NNTPv1Tests.

Definition at line 348 of file test_nntplib.py.

Definition at line 364 of file test_nntplib.py.

Definition at line 360 of file test_nntplib.py.


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