Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jim Fulton
committed
Apr 1, 2005
0 parents
commit 4ae1b01
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |