Back to index

plone3  3.1.7
Public Member Functions
Archetypes.tests.test_marshaller.PdataStreamTests Class Reference
Inheritance diagram for Archetypes.tests.test_marshaller.PdataStreamTests:
Inheritance graph
[legend]
Collaboration diagram for Archetypes.tests.test_marshaller.PdataStreamTests:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_iterator

Detailed Description

Definition at line 146 of file test_marshaller.py.


Member Function Documentation

Definition at line 148 of file test_marshaller.py.

00148 
00149     def test_iterator(self):
00150         start = pdata = Pdata('blob')
00151         for i in range(0, 5):
00152             pdata.next = Pdata('bla')
00153             pdata = pdata.next
00154         iterator = PdataStreamIterator(start, size=19, streamsize=6)
00155         expected = ['blobbl', 'ablabl', 'ablabl', 'a']
00156         self.assertEquals(list(iterator), expected)


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