Back to index

plone3  3.1.7
Public Member Functions | Private Member Functions
Archetypes.tests.test_metadata.TimeZoneTest Class Reference
Inheritance diagram for Archetypes.tests.test_metadata.TimeZoneTest:
Inheritance graph
[legend]
Collaboration diagram for Archetypes.tests.test_metadata.TimeZoneTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_Date_with_explicit_timezone
def test_CreationDate_with_explicit_timezone
def test_ModificationDate_with_explicit_timezone
def test_EffectiveDate_with_explicit_timezone
def test_ExpirationDate_with_explicit_timezone

Private Member Functions

def _makeDummyContent

Detailed Description

Definition at line 357 of file test_metadata.py.


Member Function Documentation

Definition at line 358 of file test_metadata.py.

00358 
00359     def _makeDummyContent(self, name):
00360         return mkDummyInContext(
00361             klass=Dummy, oid=name, context=self.portal, schema=schema)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 368 of file test_metadata.py.

00368 
00369     def test_CreationDate_with_explicit_timezone(self):
00370         item = self._makeDummyContent('item')
00371         item.setCreationDate(DateTime('2007-01-01T12:00:00Z'))
00372         self.assertEqual(item.CreationDate('US/Eastern'),
00373                          '2007-01-01 07:00:00')

Here is the call graph for this function:

Definition at line 362 of file test_metadata.py.

00362 
00363     def test_Date_with_explicit_timezone(self):
00364         item = self._makeDummyContent('item')
00365         item.setModificationDate(DateTime('2007-01-01T12:00:00Z'))
00366         self.assertEqual(item.Date('US/Eastern'),
00367                          '2007-01-01 07:00:00')

Here is the call graph for this function:

Definition at line 380 of file test_metadata.py.

00380 
00381     def test_EffectiveDate_with_explicit_timezone(self):
00382         item = self._makeDummyContent('item')
00383         item.setEffectiveDate(DateTime('2007-01-01T12:00:00Z'))
00384         self.assertEqual(item.EffectiveDate('US/Eastern'),
00385                          '2007-01-01 07:00:00')

Here is the call graph for this function:

Definition at line 386 of file test_metadata.py.

00386 
00387     def test_ExpirationDate_with_explicit_timezone(self):
00388         item = self._makeDummyContent('item')
00389         item.setExpirationDate(DateTime('2007-01-01T12:00:00Z'))
00390         self.assertEqual(item.ExpirationDate('US/Eastern'),
00391                          '2007-01-01 07:00:00')

Here is the call graph for this function:

Definition at line 374 of file test_metadata.py.

00374 
00375     def test_ModificationDate_with_explicit_timezone(self):
00376         item = self._makeDummyContent('item')
00377         item.setModificationDate(DateTime('2007-01-01T12:00:00Z'))
00378         self.assertEqual(item.ModificationDate('US/Eastern'),
00379                          '2007-01-01 07:00:00')

Here is the call graph for this function:


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