Commits

Anonymous committed 9aab9dd

Fixed FSTAB tests

Comments (0)

Files changed (2)

modules/support/vectorlinux/tests/test_FSTAB.py

         self.datapath = '/tmp/test_fstab'
         copy2('/etc/fstab', self.datapath)
         self.datamodel = FSTAB.FstabModel(self.datapath)
-        self.fake_entry = {"partition":"/dev/sdc1",
+        self.fake_entry = {"partition":"/dev/sdz1",
                            "mountpoint":"/fake_mount_point",
                            "filesystem":"ext2",
                            "options":"defaults 1 0"}
             )
         # verify that it went in
         listing = self.datamodel.get_active_listing()
-        readback = [item for item in self.datamodel.get_active_listing() if item[0] == self.fake_entry['partition']][0]
+        readback = [item for item in self.datamodel.get_active_listing() \
+                    if item[0] == self.fake_entry['partition' ] and \
+                    item[2] == self.fake_entry['mountpoint']][0]
         self.assertTrue(readback is not None)
         self.assertEqual(readback[0], self.fake_entry['partition'])
         self.assertEqual(readback[1], self.fake_entry['filesystem'])

modules/support/vectorlinux/tests/test_SKEL.py

 
 class TestSkel(unittest.TestCase):
     def setUp(self):
-        print "Setting up for tests"
         # create a fake user account.
         self.usermodel = USERADMIN.UserModel()
         uname = 'fidencio'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.