[Zope3-checkins] CVS: Zope3/src/zope/app/demo/hellopackage/tests - __init__.py:1.1 test_hellomodule.py:1.1

Philipp von Weitershausen philikon at philikon.de
Fri Feb 27 09:50:31 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/demo/hellopackage/tests
In directory cvs.zope.org:/tmp/cvs-serv820/app/demo/hellopackage/tests

Added Files:
	__init__.py test_hellomodule.py 
Log Message:
Moved the demo package to zope.app.


=== Added File Zope3/src/zope/app/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/02/27 14:50:22 philikon Exp $
"""


=== Added File Zope3/src/zope/app/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/02/27 14:50:22 philikon Exp $
"""

import unittest
from zope.interface.verify import verifyObject

class TestHelloModule(unittest.TestCase):

    def test_interface(self):
        from zope.app.demo.hellopackage.interfaces import IHello
        from zope.app.demo.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