test_sample_vnf: mock time 01/46601/1
authorRoss Brattain <ross.b.brattain@intel.com>
Fri, 3 Nov 2017 01:12:33 +0000 (18:12 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Fri, 3 Nov 2017 01:13:03 +0000 (18:13 -0700)
Change-Id: Id8aa734fee431d90cbdc1e0eb2173784ada822fe
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
tests/unit/network_services/vnf_generic/vnf/test_sample_vnf.py

index 39f25ea..57f9fac 100644 (file)
@@ -1391,8 +1391,9 @@ class TestRfc2544ResourceHelper(unittest.TestCase):
 
 class TestSampleVNFDeployHelper(unittest.TestCase):
 
+    @mock.patch('yardstick.network_services.vnf_generic.vnf.sample_vnf.time')
     @mock.patch('subprocess.check_output')
-    def test_deploy_vnfs_disabled(self, mock_check_output):
+    def test_deploy_vnfs_disabled(self, mock_check_output, mock_time):
         vnfd_helper = mock.Mock()
         ssh_helper = mock.Mock()
         ssh_helper.join_bin_path.return_value = 'joined_path'