Ignore:
Timestamp:
18 Apr 2012, 06:05:16 (13 years ago)
Author:
Henrik Bettermann
Message:

Rename customized classes - part2.

Attention: All applicants and students on demo portals must be deleted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/tests/test_configuration.py

    r8020 r8204  
    2626    ConfigurationTest, SessionConfigurationFactoryTest)
    2727from waeup.uniben.configuration import (
    28     SessionConfiguration, SessionConfigurationFactory)
     28    CustomSessionConfiguration, CustomSessionConfigurationFactory)
    2929from waeup.uniben.interfaces import(
    30     ISessionConfiguration, ISessionConfigurationAdd)
     30    ICustomSessionConfiguration, ICustomSessionConfigurationAdd)
    3131from waeup.uniben.testing import FunctionalLayer
    3232
     
    3838        super(ConfigurationTest, self).setUp()
    3939        self.confcontainer = ConfigurationContainer()
    40         self.sessionconf = SessionConfiguration()
     40        self.sessionconf = CustomSessionConfiguration()
    4141        return
    4242
     
    4848        #verify.verifyClass(IConfigurationContainer, ConfigurationContainer)
    4949        #verify.verifyObject(IConfigurationContainer, self.confcontainer)
    50         verify.verifyClass(ISessionConfiguration, SessionConfiguration)
    51         verify.verifyObject(ISessionConfiguration, self.sessionconf)
    52         verify.verifyClass(ISessionConfigurationAdd, SessionConfiguration)
    53         verify.verifyObject(ISessionConfigurationAdd, self.sessionconf)
     50        verify.verifyClass(ICustomSessionConfiguration, CustomSessionConfiguration)
     51        verify.verifyObject(ICustomSessionConfiguration, self.sessionconf)
     52        verify.verifyClass(ICustomSessionConfigurationAdd, CustomSessionConfiguration)
     53        verify.verifyObject(ICustomSessionConfigurationAdd, self.sessionconf)
    5454
    5555class SessionConfigurationFactoryTest(SessionConfigurationFactoryTest):
     
    5959    def setUp(self):
    6060        super(SessionConfigurationFactoryTest, self).setUp()
    61         self.factory = SessionConfigurationFactory()
     61        self.factory = CustomSessionConfigurationFactory()
    6262
    6363    #def tearDown(self):
     
    6565
    6666    def test_interfaces(self):
    67         verify.verifyClass(IFactory, SessionConfigurationFactory)
     67        verify.verifyClass(IFactory, CustomSessionConfigurationFactory)
    6868        verify.verifyObject(IFactory, self.factory)
    6969
    7070    def test_factory(self):
    7171        obj = self.factory()
    72         assert isinstance(obj, SessionConfiguration)
     72        assert isinstance(obj, CustomSessionConfiguration)
    7373
    7474    def test_getInterfaces(self):
    7575        implemented_by = self.factory.getInterfaces()
    76         assert implemented_by.isOrExtends(ISessionConfiguration)
     76        assert implemented_by.isOrExtends(ICustomSessionConfiguration)
Note: See TracChangeset for help on using the changeset viewer.