[Zope3-checkins] CVS: Zope3/src/zope/products/hellopackage/tests -
__init__.py:1.1 test_hellomodule.py:1.1
K.Narasimha Murthy
nmurthy at zeomega.com
Tue Dec 16 04:27:19 EST 2003
Update of /cvs-repository/Zope3/src/zope/products/hellopackage/tests
In directory cvs.zope.org:/tmp/cvs-serv3344/tests
Added Files:
__init__.py test_hellomodule.py
Log Message:
Moved hellopackage product from zopeproducts to zope.products folder, fixed bugs and fixed the test cases.
=== Added File Zope3/src/zope/products/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 2003/12/16 09:27:18 nmurthy Exp $
"""
=== Added File Zope3/src/zope/products/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 2003/12/16 09:27:18 nmurthy 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