Home | Trees | Indices | Help |
---|
|
1 from elisa.core.tests.elisa_test_case import BoilerPlateApp, DEFAULT_CONFIG, MAPPINGS 2 3 from elisa.core import common 4 5 from elisa.core.plugin_registry import ComponentNotFound 6 from twisted.trial.unittest import SkipTest 7 1113 14 component_path = '' 15 entry_identifiers = [] 16 174519 f = open('test_mvc_mappings.conf','w') 20 f.write(MAPPINGS) 21 f.close() 22 23 common.set_application(BoilerPlateApp(DEFAULT_CONFIG, 24 load_all_plugins=True)) 25 plugin_registry = common.application.plugin_registry 26 self.xmlmenu = plugin_registry.create_component('xmlmenu:xmltreemenu_activity') 27 28 # This is BAD! 29 self.xmlmenu.player_model = None 30 self.xmlmenu.slideshow_model = None 31 self.xmlmenu.dvd_player_model = None 32 try: 33 self.component = plugin_registry.create_component(self.component_path) 34 except ComponentNotFound: 35 raise SkipTest('component not found, maybe missing a dependency?') 36 37 self.component.activity = self.xmlmenu 38 self.component.model_configs = self.xmlmenu._model_configs3941 if len(self.entry_identifiers) == 0: 42 return 43 self.assertEquals(self.component.menu_entry_identifiers, 44 self.entry_identifiers)
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Wed Jan 16 19:10:12 2008 | http://epydoc.sourceforge.net |