diff options
| author | Jesse Keating <jkeating@redhat.com> | 2012-09-28 12:15:14 -0700 |
|---|---|---|
| committer | Jesse Keating <jkeating@redhat.com> | 2012-10-01 13:56:50 -0700 |
| commit | b5dfb9c6dd2a8a4f6fbb31705f21b543d9760869 (patch) | |
| tree | 2f98472a9882a966401b185e43a8d288f45eed32 /tests | |
| parent | 7c66db297c5ac10173710cda0f76714bb10513ac (diff) | |
| download | anaconda-b5dfb9c6dd2a8a4f6fbb31705f21b543d9760869.tar.gz anaconda-b5dfb9c6dd2a8a4f6fbb31705f21b543d9760869.tar.xz anaconda-b5dfb9c6dd2a8a4f6fbb31705f21b543d9760869.zip | |
Work the anaconda object into the VNC test
This makes the specific test of changing the VNC password work, since it
relies on that object existing.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/pyanaconda_test/vnc_test.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/pyanaconda_test/vnc_test.py b/tests/pyanaconda_test/vnc_test.py index 8b703c81c..80cc527d8 100644 --- a/tests/pyanaconda_test/vnc_test.py +++ b/tests/pyanaconda_test/vnc_test.py @@ -9,6 +9,9 @@ class VncTest(mock.TestCase): self.setupModules(["_isys", "block", "logging", "ConfigParser"]) self.fs = mock.DiskIO() + self.anaconda = mock.Mock() + self.anaconda.ksdata.vnc.password = '' + import pyanaconda pyanaconda.anaconda_log = mock.Mock() @@ -36,6 +39,7 @@ class VncTest(mock.TestCase): def set_vnc_password_1_test(self): import pyanaconda.vnc server = pyanaconda.vnc.VncServer() + server.anaconda = self.anaconda pyanaconda.vnc.iutil = mock.Mock() pyanaconda.vnc.os.pipe.return_value = (1, 2) |
