summaryrefslogtreecommitdiffstats
path: root/tests/pyanaconda_test
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2011-12-13 12:23:52 -0600
committerChris Lumens <clumens@redhat.com>2012-02-16 10:27:53 -0500
commitf6b5747efc2a022646a772e9626dbfedc91deccf (patch)
treee660e466f171afe5e3a6de99838e7331f7d1ec99 /tests/pyanaconda_test
parent3bbb42cab91a4902585b233ba924a7616bb9a6e9 (diff)
downloadanaconda-f6b5747efc2a022646a772e9626dbfedc91deccf.tar.gz
anaconda-f6b5747efc2a022646a772e9626dbfedc91deccf.tar.xz
anaconda-f6b5747efc2a022646a772e9626dbfedc91deccf.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/pyanaconda_test')
-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")