Back to index

plone3  3.1.7
test_all.py
Go to the documentation of this file.
00001 ##############################################################################
00002 #
00003 # Copyright (c) 2003 Zope Corporation. All Rights Reserved.
00004 #
00005 # This software is subject to the provisions of the Zope Visible Source
00006 # License, Version 1.0 (ZVSL).  A copy of the ZVSL should accompany this
00007 # distribution.
00008 #
00009 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
00010 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00011 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
00012 # FOR A PARTICULAR PURPOSE.
00013 #
00014 ##############################################################################
00015 """Run all Zope Version Control tests
00016 
00017 $Id: test_all.py 72373 2007-02-05 16:18:41Z tseaver $"""
00018 
00019 import unittest
00020 
00021 from Products.ZopeVersionControl.tests import testVersionControl
00022 
00023 try:
00024     from Products import References
00025 except ImportError:
00026     # References product is not available
00027     testReferenceVersioning = None
00028 else:
00029     # References product is available
00030     from Products.ZopeVersionControl.tests import testReferenceVersioning
00031 
00032 
00033 def test_suite():
00034     suite = unittest.TestSuite()
00035     suite.addTest(testVersionControl.test_suite())
00036     if testReferenceVersioning is not None:
00037         suite.addTest(testReferenceVersioning.test_suite())
00038     return suite
00039 
00040 if __name__ == "__main__":
00041     unittest.main(defaultTest="test_suite")