[Zope3-checkins]
CVS: Zope3/src/zope/products/demo/hellopackage/tests
- __init__.py:1.1 test_hellomodule.py:1.1
Philipp von Weitershausen
philikon at philikon.de
Thu Jan 15 10:01:38 EST 2004
Update of /cvs-repository/Zope3/src/zope/products/demo/hellopackage/tests
In directory cvs.zope.org:/tmp/cvs-serv29969/demo/hellopackage/tests
Added Files:
__init__.py test_hellomodule.py
Log Message:
Move the 'hellopackage' example package to the new 'demo' package. This is
the preferred place for example products that should be part of the Zope3
distribution.
=== Added File Zope3/src/zope/products/demo/hellopackage/tests/__init__.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 2.0 (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.
#
##############################################################################
"""
$Id: __init__.py,v 1.1 2004/01/15 15:01:37 philikon Exp $
"""
=== Added File Zope3/src/zope/products/demo/hellopackage/tests/test_hellomodule.py ===
##############################################################################
#
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (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.
#
##############################################################################
"""Unit tests for HelloPDF.
$Id: test_hellomodule.py,v 1.1 2004/01/15 15:01:37 philikon Exp $
"""
import unittest
from zope.interface.verify import verifyObject
class TestHelloModule(unittest.TestCase):
def test_interface(self):
from zope.products.hellopackage.interfaces import IHello
from zope.products.hellopackage.hellomodule import HelloClass
verifyObject(IHello, HelloClass())
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestHelloModule))
return suite
if __name__ == '__main__':
unittest.main()
More information about the Zope3-Checkins
mailing list