summaryrefslogtreecommitdiffstats
path: root/tests/pyanaconda_test/rescue_test.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2013-01-15 11:25:18 -0500
committerChris Lumens <clumens@redhat.com>2013-01-16 09:26:43 -0500
commit7c30893a75f0b84edeed950382192c9e31378520 (patch)
treea8fa5b1b10f0cd20c245f1703ab9e598143f36a1 /tests/pyanaconda_test/rescue_test.py
parent30437c31fe292db0fe6a9a0106265be31cf4deb3 (diff)
downloadanaconda-7c30893a75f0b84edeed950382192c9e31378520.tar.gz
anaconda-7c30893a75f0b84edeed950382192c9e31378520.tar.xz
anaconda-7c30893a75f0b84edeed950382192c9e31378520.zip
Remove the old text mode UI.
I've had to leave pieces of text.py around, though, because it's used by rescue mode and we're not changing it quite yet.
Diffstat (limited to 'tests/pyanaconda_test/rescue_test.py')
-rw-r--r--tests/pyanaconda_test/rescue_test.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/pyanaconda_test/rescue_test.py b/tests/pyanaconda_test/rescue_test.py
index b369d3eda..b93f75ebe 100644
--- a/tests/pyanaconda_test/rescue_test.py
+++ b/tests/pyanaconda_test/rescue_test.py
@@ -112,34 +112,6 @@ class RescueTest(mock.TestCase):
ret = ri.enableNetwork(anaconda)
self.assertFalse(ret)
- def rescueinterface_enablenetwork_2_test(self):
- import pyanaconda.rescue
- import pyanaconda.textw.netconfig_text
- pyanaconda.rescue.INSTALL_BACK = -1
- pyanaconda.textw.netconfig_text.NetworkConfiguratorText = mock.Mock()
- pyanaconda.textw.netconfig_text.NetworkConfiguratorText().run.return_value =\
- "foo"
- anaconda = mock.Mock()
- anaconda.network.netdevices = {'foo': 'as'}
-
- ri = pyanaconda.rescue.RescueInterface()
- ret = ri.enableNetwork(anaconda)
- self.assertTrue(ret)
-
- def rescueinterface_enablenetwork_3_test(self):
- import pyanaconda.rescue
- import pyanaconda.textw.netconfig_text
- pyanaconda.rescue.INSTALL_BACK = "foo"
- pyanaconda.textw.netconfig_text.NetworkConfiguratorText = mock.Mock()
- pyanaconda.textw.netconfig_text.NetworkConfiguratorText().run.return_value =\
- pyanaconda.rescue.INSTALL_BACK
- anaconda = mock.Mock()
- anaconda.network.netdevices = {'bar': 'asdf'}
-
- ri = pyanaconda.rescue.RescueInterface()
- ret = ri.enableNetwork(anaconda)
- self.assertFalse(ret)
-
def rescueinterface_passphraseentrywindow_test(self):
import pyanaconda.rescue
RET = ('secret', False)