Re: [PATCH 3/4] Fix import errors in the unit tests.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/29/2011 04:59 PM, Chris Lumens wrote:
---
  tests/storage_test/devicelibs_test/edd_test.py |    4 ++--
  tests/tsort_test.py                            |   22 +++++++++++-----------
  2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/tests/storage_test/devicelibs_test/edd_test.py b/tests/storage_test/devicelibs_test/edd_test.py
index 427ff21..a996e42 100644
--- a/tests/storage_test/devicelibs_test/edd_test.py
+++ b/tests/storage_test/devicelibs_test/edd_test.py
@@ -104,11 +104,11 @@ class EddTestCase(mock.TestCase):
          """ Test scenario when the 0x80 and 0x81 edd directories contain the
              same data and give no way to distinguish among the two devices.
          """
-        from storage.devicelibs import edd
+        from pyanaconda.storage.devicelibs import edd
          edd.log = mock.Mock()
          edd.collect_mbrs = mock.Mock(return_value={'sda' : '0x000ccb01',
                                                     'vda' : '0x0006aef1'})
-        fs = EddTestFS(edd).sda_sdb_same()
+        fs = EddTestFS(self, edd).sda_sdb_same()
          self.assertEqual(edd.get_edd_dict([]), {})
          self.assertIn((('edd: both edd entries 0x80 and 0x81 seem to map to sda',), {}),
                        edd.log.info.call_args_list)

An inexpertly executed merge on my part, thanks for fixing this.

Ales

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux