[Zope3-checkins] CVS: zopeproducts/hellopackage/tests - test_hellomodule.py:1.1

Viktorija Zaksiene ryzaja@codeworks.lt
Wed, 5 Feb 2003 05:52:21 -0500


Update of /cvs-repository/zopeproducts/hellopackage/tests
In directory cvs.zope.org:/tmp/cvs-serv9438/hellopackage/tests

Added Files:
	test_hellomodule.py 
Log Message:
Renamed HelloPackage to fit grand renaming rules.


=== Added File zopeproducts/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/02/05 10:52:18 ryzaja Exp $
"""

import unittest
from zope.interface.verify import verifyObject

class TestHelloModule(unittest.TestCase):

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