[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/tests - __init__.py:1.1.2.1 testZPTPage.py:1.1.2.1

Stephan Richter srichter@cbu.edu
Wed, 27 Mar 2002 10:54:44 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/tests
In directory cvs.zope.org:/tmp/cvs-serv12282/Content/ZPTPage/tests

Added Files:
      Tag: Zope-3x-branch
	__init__.py testZPTPage.py 
Log Message:
New Content Objects:

- NaiveFile --> all the data is stored in one string
- File --> Uses a BTree to store the data in chunks (more efficient)
- Image --> Can store and display an image a la Z2 (based on File)
- ZPTPage --> A simple version of ZPT for the content space to allow some 
  dynamics data (please do not use this for scripting)

Also:

- Expansion of supported views
- all edit screens are Formulator supported



=== Added File Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/tests/__init__.py ===


=== Added File Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/tests/testZPTPage.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors. 
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 1.1 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS 
# FOR A PARTICULAR PURPOSE.
##############################################################################
"""
Basic tests for Page Templates used in content-space.

$Id: testZPTPage.py,v 1.1.2.1 2002/03/27 15:54:43 srichter Exp $
"""

import unittest

from Zope.App.OFS.Content.ZPTPage.ZPTPage import ZPTPage
from Zope.PageTemplate.tests.testBasicTemplate import BasicTemplateTests


class ZPTPageTests(BasicTemplateTests):
    def setUp(self):
        BasicTemplateTests.setUp(self)
        self.t = ZPTPage()


def test_suite():
   return unittest.makeSuite(ZPTPageTests, 'check')

if __name__=='__main__':
   unittest.TextTestRunner().run(test_suite())