~landscape/zope3/ztk-1.1.3

« back to all changes in this revision

Viewing changes to src/zope/app/security/browser/tests.py

  • Committer: Sidnei da Silva
  • Date: 2010-07-05 21:07:01 UTC
  • Revision ID: sidnei.da.silva@canonical.com-20100705210701-zmqhqrbzad1mhzsl
- Reduce deps

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.1 (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
 
"""Security Views Tests
15
 
 
16
 
$Id: tests.py 106799 2009-12-20 04:50:49Z fafhrd $
17
 
"""
18
 
__docformat__ = "reStructuredText"
19
 
import unittest
20
 
from zope.testing import doctest
21
 
 
22
 
def test_bbb_imports():
23
 
    """
24
 
      >>> import zope.app.security.browser.principalterms as old
25
 
      >>> import zope.authentication.principal as new
26
 
 
27
 
      >>> old.PrincipalTerms is new.PrincipalTerms
28
 
      True
29
 
      >>> old.Term is new.PrincipalTerm
30
 
      True
31
 
 
32
 
    """
33
 
 
34
 
def test_suite():
35
 
    return unittest.TestSuite((
36
 
        doctest.DocTestSuite(),
37
 
        doctest.DocFileSuite('authutilitysearchview.txt'),
38
 
        doctest.DocFileSuite('loginlogout.txt'),
39
 
        ))