~ztk-steering-group/zope.authentication/trunk-SVN

« back to all changes in this revision

Viewing changes to src/zope/authentication/tests/test_principallogging.py

  • Committer: nadako
  • Date: 2009-03-11 22:31:33 UTC
  • Revision ID: svn-v4:62d5b8a3-27da-0310-9561-8e5933582275:zope.authentication/trunk:97931
Get some shape.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
##############################################################################
2
 
#
3
 
# Copyright (c) 2003 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
 
"""Test for PrincipalLogging.
15
 
 
16
 
$Id$
17
 
"""
18
 
import unittest
19
 
from zope.testing.doctestunit import DocTestSuite
20
 
 
21
 
def test_bbb_imports():
22
 
    """
23
 
    Let's check that permission vocabularies that were moved to
24
 
    zope.security are still importable from original place.
25
 
    
26
 
      >>> import zope.publisher.principallogging as new
27
 
      >>> import zope.app.security.principallogging as old
28
 
      >>> old.PrincipalLogging is new.PrincipalLogging
29
 
      True
30
 
    
31
 
    """
32
 
 
33
 
def test_suite():
34
 
    return unittest.TestSuite((
35
 
        DocTestSuite(),
36
 
        ))
37
 
 
38
 
if __name__ == '__main__':
39
 
    unittest.main(defaultTest='test_suite')