Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
Archetypes.tests.test_index.ETagTest Class Reference
Inheritance diagram for Archetypes.tests.test_index.ETagTest:
Inheritance graph
[legend]
Collaboration diagram for Archetypes.tests.test_index.ETagTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def test_etag_does_update_reindex_all
def test_etag_update_on_edit
def test_etag_update_on_update
def test_etag_update_on_processform

Public Attributes

 inst

Detailed Description

Definition at line 35 of file test_index.py.


Member Function Documentation

Definition at line 37 of file test_index.py.

00037 
00038     def afterSetUp(self):
00039         self.setRoles(['Manager'])
00040         self.inst = makeContent(self.portal,
00041                                 portal_type='SimpleType',
00042                                 id='simple_type')

Here is the call graph for this function:

Definition at line 45 of file test_index.py.

00045 
00046     def test_etag_does_update_reindex_all(self):
00047         before = self.inst.http__etag(readonly=True)
00048         time.sleep(1)
00049         self.inst.reindexObject()
00050         after = self.inst.http__etag(readonly=True)
00051         self.failIf(before == after)

Definition at line 52 of file test_index.py.

00052 
00053     def test_etag_update_on_edit(self):
00054         before = self.inst.http__etag(readonly=True)
00055         time.sleep(1)
00056         self.inst.edit(title='Bla')
00057         after = self.inst.http__etag(readonly=True)
00058         self.failIf(before == after)

Definition at line 66 of file test_index.py.

00066 
00067     def test_etag_update_on_processform(self):
00068         before = self.inst.http__etag(readonly=True)
00069         time.sleep(1)
00070         self.inst.processForm(data=1, values={'title':'Bla'})
00071         after = self.inst.http__etag(readonly=True)
00072         self.failIf(before == after)
00073 

Definition at line 59 of file test_index.py.

00059 
00060     def test_etag_update_on_update(self):
00061         before = self.inst.http__etag(readonly=True)
00062         time.sleep(1)
00063         self.inst.update(title='Bla')
00064         after = self.inst.http__etag(readonly=True)
00065         self.failIf(before == after)


Member Data Documentation

Definition at line 39 of file test_index.py.


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