From 1ec40d0753e7d5185a7fc810df33370330fc6f90 Mon Sep 17 00:00:00 2001 From: Thiago da Silva Date: Fri, 10 Jul 2015 23:25:50 -0400 Subject: fix unit test due to changes in mock Change-Id: Ica8a7443fa398d9c02e1658700dc067155e0913e Signed-off-by: Thiago da Silva --- test-requirements.txt | 5 ++--- test/unit/gluster/test_gfapi.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 7031033..4ddce0f 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,10 +1,9 @@ # Hacking already pins down pep8, pyflakes and flake8 -hacking>=0.5.6,<0.6 +hacking>=0.8.0,<0.9 coverage nose nosexcover openstack.nose_plugin nosehtmloutput sphinx>=1.1.2 -mock>=0.8.0 -loremipsum +mock>=1.0 diff --git a/test/unit/gluster/test_gfapi.py b/test/unit/gluster/test_gfapi.py index 62d7266..7206aa1 100644 --- a/test/unit/gluster/test_gfapi.py +++ b/test/unit/gluster/test_gfapi.py @@ -377,7 +377,7 @@ class TestVolume(unittest.TestCase): with patch("gluster.gfapi.api.glfs_init", _m_glfs_init): self.assertRaises(LibgfapiException, v.mount) self.assertFalse(v.mounted) - _m_glfs_init.assert_caled_once_with(v.fs) + _m_glfs_init.assert_called_once_with(v.fs) def test_umount_error(self): v = Volume("host", "vol") -- cgit