Back to index

python3.2  3.2.2
Public Member Functions | Private Attributes
test.test_mailbox.TestProxyFile Class Reference
Inheritance diagram for test.test_mailbox.TestProxyFile:
Inheritance graph
[legend]
Collaboration diagram for test.test_mailbox.TestProxyFile:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def setUp
def tearDown
def test_initialize
def test_read
def test_readline
def test_readlines
def test_iteration
def test_seek_and_tell
def test_close

Private Attributes

 _path
 _file

Detailed Description

Definition at line 1880 of file test_mailbox.py.


Member Function Documentation

Definition at line 1882 of file test_mailbox.py.

01882 
01883     def setUp(self):
01884         self._path = support.TESTFN
01885         self._file = open(self._path, 'wb+')

Here is the caller graph for this function:

Definition at line 1886 of file test_mailbox.py.

01886 
01887     def tearDown(self):
01888         self._file.close()
01889         self._delete_recursively(self._path)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1924 of file test_mailbox.py.

01924 
01925     def test_close(self):
01926         self._file.write(bytes('foo%sbar%s' % (os.linesep, os.linesep), 'ascii'))
01927         self._test_close(mailbox._ProxyFile(self._file))
01928 

Here is the call graph for this function:

Definition at line 1890 of file test_mailbox.py.

01890 
01891     def test_initialize(self):
01892         # Initialize and check position
01893         self._file.write(b'foo')
01894         pos = self._file.tell()
01895         proxy0 = mailbox._ProxyFile(self._file)
01896         self.assertEqual(proxy0.tell(), pos)
01897         self.assertEqual(self._file.tell(), pos)
01898         proxy1 = mailbox._ProxyFile(self._file, 0)
01899         self.assertEqual(proxy1.tell(), 0)
01900         self.assertEqual(self._file.tell(), pos)

Here is the call graph for this function:

Definition at line 1915 of file test_mailbox.py.

01915 
01916     def test_iteration(self):
01917         self._file.write(bytes('foo%sbar%sfred%sbob' % (os.linesep, os.linesep,
01918                                                   os.linesep), 'ascii'))
01919         self._test_iteration(mailbox._ProxyFile(self._file))

Here is the call graph for this function:

Definition at line 1901 of file test_mailbox.py.

01901 
01902     def test_read(self):
01903         self._file.write(b'bar')
01904         self._test_read(mailbox._ProxyFile(self._file))

Here is the call graph for this function:

Definition at line 1905 of file test_mailbox.py.

01905 
01906     def test_readline(self):
01907         self._file.write(bytes('foo%sbar%sfred%sbob' % (os.linesep, os.linesep,
01908                                                   os.linesep), 'ascii'))
01909         self._test_readline(mailbox._ProxyFile(self._file))

Here is the call graph for this function:

Definition at line 1910 of file test_mailbox.py.

01910 
01911     def test_readlines(self):
01912         self._file.write(bytes('foo%sbar%sfred%sbob' % (os.linesep, os.linesep,
01913                                                   os.linesep), 'ascii'))
01914         self._test_readlines(mailbox._ProxyFile(self._file))

Here is the call graph for this function:

Definition at line 1920 of file test_mailbox.py.

01920 
01921     def test_seek_and_tell(self):
01922         self._file.write(bytes('foo%sbar%s' % (os.linesep, os.linesep), 'ascii'))
01923         self._test_seek_and_tell(mailbox._ProxyFile(self._file))

Here is the call graph for this function:


Member Data Documentation

Definition at line 1884 of file test_mailbox.py.

Definition at line 1883 of file test_mailbox.py.


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