Back to index

plone3  3.1.7
test_ChallengeProtocolChooser.py
Go to the documentation of this file.
00001 ##############################################################################
00002 #
00003 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights
00004 # Reserved.
00005 #
00006 # This software is subject to the provisions of the Zope Public License,
00007 # Version 2.1 (ZPL).  A copy of the ZPL should accompany this
00008 # distribution.
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 """ Unit tests for ChallengeProtocolChooser
00016 
00017 $Id: test_ChallengeProtocolChooser.py 39343 2005-08-17 20:53:14Z sidnei $
00018 """
00019 import unittest
00020 
00021 from Products.PluggableAuthService.tests.conformance \
00022     import IChallengeProtocolChooser_conformance
00023 
00024 class ChallengeProtocolChooser( unittest.TestCase
00025                                 , IChallengeProtocolChooser_conformance 
00026                               ):
00027 
00028 
00029     def _getTargetClass( self ):
00030 
00031         from Products.PluggableAuthService.plugins.ChallengeProtocolChooser \
00032             import ChallengeProtocolChooser
00033 
00034         return ChallengeProtocolChooser
00035 
00036     def _makeOne( self, id='test', *args, **kw ):
00037 
00038         return self._getTargetClass()( id, *args, **kw )
00039 
00040 
00041 if __name__ == "__main__":
00042     unittest.main()
00043         
00044 def test_suite():
00045     return unittest.TestSuite((
00046         unittest.makeSuite( ChallengeProtocolChooser ),
00047         ))
00048