Changeset 8204 for main/waeup.uniben/trunk/src/waeup/uniben/tests
- Timestamp:
- 18 Apr 2012, 06:05:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/tests/test_configuration.py
r8020 r8204 26 26 ConfigurationTest, SessionConfigurationFactoryTest) 27 27 from waeup.uniben.configuration import ( 28 SessionConfiguration,SessionConfigurationFactory)28 CustomSessionConfiguration, CustomSessionConfigurationFactory) 29 29 from waeup.uniben.interfaces import( 30 I SessionConfiguration, ISessionConfigurationAdd)30 ICustomSessionConfiguration, ICustomSessionConfigurationAdd) 31 31 from waeup.uniben.testing import FunctionalLayer 32 32 … … 38 38 super(ConfigurationTest, self).setUp() 39 39 self.confcontainer = ConfigurationContainer() 40 self.sessionconf = SessionConfiguration()40 self.sessionconf = CustomSessionConfiguration() 41 41 return 42 42 … … 48 48 #verify.verifyClass(IConfigurationContainer, ConfigurationContainer) 49 49 #verify.verifyObject(IConfigurationContainer, self.confcontainer) 50 verify.verifyClass(I SessionConfiguration,SessionConfiguration)51 verify.verifyObject(I SessionConfiguration, self.sessionconf)52 verify.verifyClass(I SessionConfigurationAdd,SessionConfiguration)53 verify.verifyObject(I SessionConfigurationAdd, self.sessionconf)50 verify.verifyClass(ICustomSessionConfiguration, CustomSessionConfiguration) 51 verify.verifyObject(ICustomSessionConfiguration, self.sessionconf) 52 verify.verifyClass(ICustomSessionConfigurationAdd, CustomSessionConfiguration) 53 verify.verifyObject(ICustomSessionConfigurationAdd, self.sessionconf) 54 54 55 55 class SessionConfigurationFactoryTest(SessionConfigurationFactoryTest): … … 59 59 def setUp(self): 60 60 super(SessionConfigurationFactoryTest, self).setUp() 61 self.factory = SessionConfigurationFactory()61 self.factory = CustomSessionConfigurationFactory() 62 62 63 63 #def tearDown(self): … … 65 65 66 66 def test_interfaces(self): 67 verify.verifyClass(IFactory, SessionConfigurationFactory)67 verify.verifyClass(IFactory, CustomSessionConfigurationFactory) 68 68 verify.verifyObject(IFactory, self.factory) 69 69 70 70 def test_factory(self): 71 71 obj = self.factory() 72 assert isinstance(obj, SessionConfiguration)72 assert isinstance(obj, CustomSessionConfiguration) 73 73 74 74 def test_getInterfaces(self): 75 75 implemented_by = self.factory.getInterfaces() 76 assert implemented_by.isOrExtends(I SessionConfiguration)76 assert implemented_by.isOrExtends(ICustomSessionConfiguration)
Note: See TracChangeset for help on using the changeset viewer.