Exemple #1
0
 def test_image_meta_set(self, mock_auth):
     '''
     Test for Sets a key=value pair in the
      metadata for an image (nova image-meta set)
     '''
     mock_auth.side_effect = MagicMock()
     with patch.object(mock_auth,
                       'image_meta_set', MagicMock(return_value='A')):
         self.assertTrue(nova.image_meta_set())
Exemple #2
0
 def test_image_meta_set(self):
     '''
     Test for Sets a key=value pair in the
      metadata for an image (nova image-meta set)
     '''
     self.mock_auth.side_effect = MagicMock()
     with patch.object(self.mock_auth, 'image_meta_set',
                       MagicMock(return_value='A')):
         self.assertTrue(nova.image_meta_set())
 def test_image_meta_set(self):
     """
     Test for Sets a key=value pair in the
      metadata for an image (nova image-meta set)
     """
     self.mock_auth.side_effect = MagicMock()
     with patch.object(self.mock_auth, "image_meta_set",
                       MagicMock(return_value="A")):
         self.assertTrue(nova.image_meta_set())