iro/tests/install.py
branchdevel
changeset 241 546316b0b09c
parent 231 3929338fd17f
child 242 745d829d1e02
--- a/iro/tests/install.py	Wed Mar 21 19:43:36 2012 +0100
+++ b/iro/tests/install.py	Fri Mar 23 16:16:56 2012 +0100
@@ -6,23 +6,11 @@
 
 from iro import install
 from iro import config
-from iro.model.schema import Base
-
+from iro.model.schema import Base, Offer
+from iro.model.utils import WithSession
+from iro.offer.provider import providers, Provider
 from ..test_helpers.dbtestcase import md, SampleDatabase
-
-class DummyObserver(object):
-    def __init__(self):
-        self.e=[]    
-
-    def start(self):
-        log.addObserver(self.emit)
-
-    def stop(self):
-        log.removeObserver(self.emit)
-    
-    def emit(self, eventDict):
-        self.e.append(eventDict)
-
+from ..test_helpers.utils import DummyObserver
 
 class TestInstallation(unittest.TestCase):
     '''test install script'''