summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2011-12-13 12:23:52 -0600
committerDavid Lehman <dlehman@redhat.com>2011-12-19 11:19:56 -0600
commit58d7cc4e4f6a16bb1d474caf28110d225774918a (patch)
tree7b929e6ff226ee254fd40c2d870b23b54ff3f9b8 /tests
parenta367553816d9fbefde3381c5e2fe47ad65b1f578 (diff)
downloadanaconda-58d7cc4e4f6a16bb1d474caf28110d225774918a.tar.gz
anaconda-58d7cc4e4f6a16bb1d474caf28110d225774918a.tar.xz
anaconda-58d7cc4e4f6a16bb1d474caf28110d225774918a.zip
Put NoSuchGroup and DispatchError back, but not in errors.py. (#760786)
Their use is very limited, so just define them in the modules that use them primarily.
Diffstat (limited to 'tests')
-rw-r--r--tests/pyanaconda_test/dispatch_test.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/pyanaconda_test/dispatch_test.py b/tests/pyanaconda_test/dispatch_test.py
index 9f2fac1ca..669ec534f 100644
--- a/tests/pyanaconda_test/dispatch_test.py
+++ b/tests/pyanaconda_test/dispatch_test.py
@@ -13,7 +13,7 @@ class StepTest(mock.TestCase):
def done_test(self):
from pyanaconda.dispatch import Step
- from pyanaconda.errors import DispatchError
+ from pyanaconda.dispatch import DispatchError
s = Step("a_step")
s.schedule(None)
s.request(None)
@@ -37,7 +37,7 @@ class StepTest(mock.TestCase):
def reschedule_test(self):
from pyanaconda.dispatch import Step
- from pyanaconda.errors import DispatchError
+ from pyanaconda.dispatch import DispatchError
s = Step("a_step")
s._reschedule(Step.SCHED_UNSCHEDULED, None)
self.assertEqual(s.sched, Step.SCHED_UNSCHEDULED)
@@ -59,7 +59,7 @@ class StepTest(mock.TestCase):
def request_test(self):
from pyanaconda.dispatch import Step
- from pyanaconda.errors import DispatchError
+ from pyanaconda.dispatch import DispatchError
s = Step("a_step")
s.request(None)
self.assertRaises(DispatchError, s.skip, None)
@@ -72,7 +72,7 @@ class StepTest(mock.TestCase):
def unschedule_test(self):
from pyanaconda.dispatch import Step
- from pyanaconda.errors import DispatchError
+ from pyanaconda.dispatch import DispatchError
s = Step("a_step")
s.schedule(None)
self.assertEquals(s.sched, Step.SCHED_SCHEDULED)
@@ -84,7 +84,7 @@ class StepTest(mock.TestCase):
def skip_test(self):
from pyanaconda.dispatch import Step
- from pyanaconda.errors import DispatchError
+ from pyanaconda.dispatch import DispatchError
s = Step("a_step")
s.skip(None)
self.assertEquals(s.sched, Step.SCHED_SKIPPED)
@@ -162,7 +162,7 @@ class DispatchTest(mock.TestCase):
def done_test(self):
from pyanaconda.dispatch import Dispatcher
from pyanaconda.dispatch import Step
- from pyanaconda.errors import DispatchError
+ from pyanaconda.dispatch import DispatchError
d = self._getDispatcher()
self.assertFalse(d.step_enabled("betanag"))
@@ -197,7 +197,7 @@ class DispatchTest(mock.TestCase):
self.assertTrue(d.step_enabled("filtertype"))
def request_steps_gently_test(self):
- from pyanaconda.errors import DispatchError
+ from pyanaconda.dispatch import DispatchError
from pyanaconda.dispatch import Step
d = self._getDispatcher()
d.schedule_steps("betanag", "complete")