diff options
author | Ales Kozumplik <akozumpl@redhat.com> | 2011-08-18 10:45:19 +0200 |
---|---|---|
committer | Ales Kozumplik <akozumpl@redhat.com> | 2011-08-22 10:33:58 +0200 |
commit | bf1b24ffa0bf77cd21644b8acf3cedfba08ca04f (patch) | |
tree | cbf4d6ee8d268e2626e09101b8fea502f7aaa47f /tests/pyanaconda_test | |
parent | eb86f85423ed24107fafe9d3b0275c38222a80b6 (diff) | |
download | anaconda-bf1b24ffa0bf77cd21644b8acf3cedfba08ca04f.tar.gz anaconda-bf1b24ffa0bf77cd21644b8acf3cedfba08ca04f.tar.xz anaconda-bf1b24ffa0bf77cd21644b8acf3cedfba08ca04f.zip |
Allow answering the uninitialized disk question more than once.
With kickstart, if the user only had a single disk, said 'no' to
reinitialization and then pressed 'back' when informed no usable disks
were found, he ended up in the timezone screen.
Resolves: rhbz#730959
Diffstat (limited to 'tests/pyanaconda_test')
-rw-r--r-- | tests/pyanaconda_test/dispatch_test.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pyanaconda_test/dispatch_test.py b/tests/pyanaconda_test/dispatch_test.py index be1026746..b9243f6ba 100644 --- a/tests/pyanaconda_test/dispatch_test.py +++ b/tests/pyanaconda_test/dispatch_test.py @@ -146,6 +146,19 @@ class DispatchTest(mock.TestCase): self.anaconda_obj = mock.Mock() return Dispatcher(self.anaconda_obj) + def can_go_back_test(self): + d = self._getDispatcher() + d.schedule_steps("rescue", "kickstart", "language", "keyboard") + # can not go back if dispatcher hasn't moved out of the initial state + self.assertFalse(d.can_go_back()) + # can not go back if all preceding steps are direct + d.step = "language" + self.assertFalse(d.can_go_back()) + d.done_steps("language") + # but in "keyboard" we can go back to "language" + d.step = "keyboard" + self.assertTrue(d.can_go_back()) + def done_test(self): from pyanaconda.dispatch import Dispatcher from pyanaconda.dispatch import Step |