diff options
| author | Zandrr <campbellalex11@gmail.com> | 2015-06-27 07:21:59 +0000 | 
|---|---|---|
| committer | Zandrr <campbellalex11@gmail.com> | 2015-06-27 07:21:59 +0000 | 
| commit | cd6e853a5f7c6faa26822fb7669d16ce57997744 (patch) | |
| tree | f3829c9bae21acf1e4a6ce7d722669f4e8fbf212 /test/unit | |
| parent | 2c468ae0d5a1e25998373abb72d87b1ee7693816 (diff) | |
changed unmount to umount
Change-Id: Iced9bb59a33c38964e012f9d6c9ef13efc1f184c
Diffstat (limited to 'test/unit')
| -rw-r--r-- | test/unit/gluster/test_gfapi.py | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/gluster/test_gfapi.py b/test/unit/gluster/test_gfapi.py index f850f0f..62d7266 100644 --- a/test/unit/gluster/test_gfapi.py +++ b/test/unit/gluster/test_gfapi.py @@ -329,12 +329,12 @@ class TestVolume(unittest.TestCase):          self.assertEqual(v.port, 9876)          self.assertFalse(v.mounted) -    def test_mount_unmount_success(self): +    def test_mount_umount_success(self):          v = Volume("host", "vol")          v.mount()          self.assertTrue(v.mounted)          self.assertTrue(v.fs) -        v.unmount() +        v.umount()          self.assertFalse(v.mounted)          self.assertFalse(v.fs) @@ -379,14 +379,14 @@ class TestVolume(unittest.TestCase):              self.assertFalse(v.mounted)              _m_glfs_init.assert_caled_once_with(v.fs) -    def test_unmount_error(self): +    def test_umount_error(self):          v = Volume("host", "vol")          v.mount()          _m_glfs_fini = Mock(return_value=-1)          with patch("gluster.gfapi.api.glfs_fini", _m_glfs_fini): -            self.assertRaises(LibgfapiException, v.unmount) +            self.assertRaises(LibgfapiException, v.umount)              _m_glfs_fini.assert_called_once_with(v.fs) -            # Should still be mounted as unmount failed. +            # Should still be mounted as umount failed.              self.assertTrue(v.mounted)      def test_set_logging(self):  | 
