Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_multiprocessing.OtherTest Class Reference

List of all members.

Public Member Functions

def test_deliver_challenge_auth_failure
def test_answer_challenge_auth_failure

Public Attributes

 count

Detailed Description

Definition at line 2012 of file test_multiprocessing.py.


Member Function Documentation

Definition at line 2024 of file test_multiprocessing.py.

02024 
02025     def test_answer_challenge_auth_failure(self):
02026         class _FakeConnection(object):
02027             def __init__(self):
02028                 self.count = 0
02029             def recv_bytes(self, size):
02030                 self.count += 1
02031                 if self.count == 1:
02032                     return multiprocessing.connection.CHALLENGE
02033                 elif self.count == 2:
02034                     return b'something bogus'
02035                 return b''
02036             def send_bytes(self, data):
02037                 pass
02038         self.assertRaises(multiprocessing.AuthenticationError,
02039                           multiprocessing.connection.answer_challenge,
02040                           _FakeConnection(), b'abc')
02041 
02042 #
02043 # Test Manager.start()/Pool.__init__() initializer feature - see issue 5585
02044 #

Here is the call graph for this function:

Definition at line 2014 of file test_multiprocessing.py.

02014 
02015     def test_deliver_challenge_auth_failure(self):
02016         class _FakeConnection(object):
02017             def recv_bytes(self, size):
02018                 return b'something bogus'
02019             def send_bytes(self, data):
02020                 pass
02021         self.assertRaises(multiprocessing.AuthenticationError,
02022                           multiprocessing.connection.deliver_challenge,
02023                           _FakeConnection(), b'abc')


Member Data Documentation

Definition at line 2027 of file test_multiprocessing.py.


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