Ignore:
Timestamp:
Jan 29, 2010 7:38:14 PM (10 years ago)
Author:
wehart
Message:

Update to Coopr to account for changes in PyUtilib? package names.

Location:
coopr.opt/trunk/coopr/opt/tests/base
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • coopr.opt/trunk/coopr/opt/tests/base/test_config.py

    r1768 r2201  
    1515import coopr.opt
    1616import pyutilib.services
    17 import pyutilib.plugin.app
     17import pyutilib.component.app
    1818import pyutilib.misc
    1919
     
    3232        Read in config file opt1.cfg
    3333        """
    34         app = pyutilib.plugin.app.SimpleApplication("testapp")
    35         #pyutilib.plugin.PluginGlobals.pprint()
     34        app = pyutilib.component.app.SimpleApplication("testapp")
     35        #pyutilib.component.PluginGlobals.pprint()
    3636        #app.config.summarize()
    3737        app.save_configuration(currdir+"opt1-out.cfg")
  • coopr.opt/trunk/coopr/opt/tests/base/test_convert.py

    r1768 r2201  
    1919import pyutilib.th
    2020import pyutilib.services
    21 import pyutilib.plugin.config
    22 import pyutilib.plugin.core
     21import pyutilib.component.config
     22import pyutilib.component.core
    2323import pyutilib.common
    2424import xml
     
    7979        # Reset all options
    8080        #
    81         for ep in pyutilib.plugin.core.ExtensionPoint(pyutilib.plugin.config.IOption):
     81        for ep in pyutilib.component.core.ExtensionPoint(pyutilib.component.config.IOption):
    8282            ep.reset()
    8383
  • coopr.opt/trunk/coopr/opt/tests/base/test_factory.py

    r1938 r2201  
    1616import coopr
    1717import pyutilib.services
    18 import pyutilib.plugin.core
     18import pyutilib.component.core
    1919
    2020
     
    8686        Testing methods in the solverwriter factory registration process
    8787        """
    88         ep = pyutilib.plugin.core.ExtensionPoint(coopr.opt.ISolverRegistration)
     88        ep = pyutilib.component.core.ExtensionPoint(coopr.opt.ISolverRegistration)
    8989        service = ep.service("stest")
    9090        self.failUnlessEqual(service.type(), "stest")
     
    116116        Testing methods in the writer factory registration process
    117117        """
    118         ep = pyutilib.plugin.core.ExtensionPoint(coopr.opt.IWriterRegistration)
     118        ep = pyutilib.component.core.ExtensionPoint(coopr.opt.IWriterRegistration)
    119119        service = ep.service("wtest")
    120120        self.failUnlessEqual(service.type(), "wtest")
     
    145145        Testing methods in the reader factory registration process
    146146        """
    147         ep = pyutilib.plugin.core.ExtensionPoint(coopr.opt.IReaderRegistration)
     147        ep = pyutilib.component.core.ExtensionPoint(coopr.opt.IReaderRegistration)
    148148        service = ep.service("rtest")
    149149        self.failUnlessEqual(service.type(), "rtest")
Note: See TracChangeset for help on using the changeset viewer.