Ignore:
Timestamp:
9 Dec 2014, 16:45:52 (10 years ago)
Author:
Henrik Bettermann
Message:

Remove session configuration. We do not have sessions in Ikoba.

File:
1 edited

Legend:

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

    r11949 r12186  
    2121from zope.interface import verify
    2222from waeup.ikoba.testing import FunctionalLayer, FunctionalTestCase
    23 from waeup.ikoba.configuration import (
    24     ConfigurationContainer, SessionConfiguration, SessionConfigurationFactory)
    25 from waeup.ikoba.interfaces import(
    26     IConfigurationContainer, ISessionConfiguration, ISessionConfigurationAdd)
     23from waeup.ikoba.configuration import ConfigurationContainer
     24from waeup.ikoba.interfaces import IConfigurationContainer
    2725
    2826class ConfigurationTest(FunctionalTestCase):
     
    3331        super(ConfigurationTest, self).setUp()
    3432        self.confcontainer = ConfigurationContainer()
    35         self.sessionconf = SessionConfiguration()
    3633        return
    3734
     
    4340        verify.verifyClass(IConfigurationContainer, ConfigurationContainer)
    4441        verify.verifyObject(IConfigurationContainer, self.confcontainer)
    45         verify.verifyClass(ISessionConfiguration, SessionConfiguration)
    46         verify.verifyObject(ISessionConfiguration, self.sessionconf)
    47         verify.verifyClass(ISessionConfigurationAdd, SessionConfiguration)
    48         verify.verifyObject(ISessionConfigurationAdd, self.sessionconf)
    49 
    50 class SessionConfigurationFactoryTest(FunctionalTestCase):
    51 
    52     layer = FunctionalLayer
    53 
    54     def setUp(self):
    55         super(SessionConfigurationFactoryTest, self).setUp()
    56         self.factory = SessionConfigurationFactory()
    57 
    58     def tearDown(self):
    59         super(SessionConfigurationFactoryTest, self).tearDown()
    60 
    61     def test_interfaces(self):
    62         verify.verifyClass(IFactory, SessionConfigurationFactory)
    63         verify.verifyObject(IFactory, self.factory)
    64 
    65     def test_factory(self):
    66         obj = self.factory()
    67         assert isinstance(obj, SessionConfiguration)
    68 
    69     def test_getInterfaces(self):
    70         implemented_by = self.factory.getInterfaces()
    71         assert implemented_by.isOrExtends(ISessionConfiguration)
Note: See TracChangeset for help on using the changeset viewer.