~ubuntu-branches/ubuntu/quantal/zodb/quantal

« back to all changes in this revision

Viewing changes to src/ZODB/scripts/tests/test_doc.py

  • Committer: Bazaar Package Importer
  • Author(s): Fabio Tranchitella, Brian Sutherland, Fabio Tranchitella
  • Date: 2010-01-05 22:22:35 UTC
  • mfrom: (6.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100105222235-z2xg4h60ru3e891t
Tags: 1:3.9.4-1
[ Brian Sutherland ]
* debian/tests/all: Test the correct python modules.

[ Fabio Tranchitella ]
* New upstream release.
* Convert to debhelper 7 and the pydeb dh7 extension.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
##############################################################################
 
2
#
 
3
# Copyright (c) 2004 Zope Corporation and Contributors.
 
4
# All Rights Reserved.
 
5
#
 
6
# This software is subject to the provisions of the Zope Public License,
 
7
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 
8
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 
9
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 
10
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 
11
# FOR A PARTICULAR PURPOSE.
 
12
#
 
13
##############################################################################
 
14
"""Test harness for scripts.
 
15
 
 
16
$Id: test_doc.py 106171 2009-12-02 12:51:46Z gotcha $
 
17
"""
 
18
import unittest
 
19
import re
 
20
from zope.testing import doctest, renormalizing
 
21
import ZODB.tests.util
 
22
 
 
23
checker = renormalizing.RENormalizing([
 
24
    (re.compile('[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]+'),
 
25
     '2007-11-10 15:18:48.543001'),
 
26
    (re.compile('hash=[0-9a-f]{40}'),
 
27
     'hash=b16422d09fabdb45d4e4325e4b42d7d6f021d3c3')])
 
28
 
 
29
def test_suite():
 
30
    return unittest.TestSuite((
 
31
        doctest.DocFileSuite(
 
32
            'referrers.txt', 'fstail.txt',
 
33
            setUp=ZODB.tests.util.setUp, tearDown=ZODB.tests.util.tearDown,
 
34
            checker=checker),
 
35
        ))