--- 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'''