Back to index

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

List of all members.

Public Member Functions

def testSetFilenameOfLargeFile

Detailed Description

Definition at line 164 of file test_filename.py.


Member Function Documentation

Test for https://dev.plone.org/archetypes/ticket/635

Definition at line 165 of file test_filename.py.

00165 
00166     def testSetFilenameOfLargeFile(self):
00167         """Test for https://dev.plone.org/archetypes/ticket/635
00168         """
00169         self.folder.invokeFactory('SimpleFile', 'sf')
00170         obj = self.folder.sf
00171         contents = StringIO('largest file, ' * 10000)
00172         obj.setBody(contents)
00173         self.assertEqual(obj.getBody().size, 140000)
00174         obj.getBody().setFilename('Spam.txt')
00175         self.assertEqual(obj.getBody().size, 140000)
00176         


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