Skip to content

Commit

Permalink
Use newer doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Apr 1, 2005
0 parents commit 4ae1b01
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions tests.py
@@ -0,0 +1,46 @@
##############################################################################
#
# 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.
#
##############################################################################
"""Test for missing values.
>>> from Missing import Value
>>> Value != 12
1
>>> 12 != Value
1
>>> u"abc" != Value
1
>>> Value != u"abc"
1
>>> 1 + Value == Value
1
>>> Value + 1 == Value
1
>>> Value == 1 + Value
1
>>> Value == Value + 1
1
$Id$
"""
import unittest
from zope.testing.doctest import DocTestSuite

def test_suite():
return unittest.TestSuite((
DocTestSuite(),
))

if __name__ == '__main__': unittest.main()

0 comments on commit 4ae1b01

Please sign in to comment.