Пример #1
0
 def test_secgroup_delete(self, mock_auth):
     '''
     Test for Delete a secgroup to nova (nova secgroup-delete)
     '''
     mock_auth.side_effect = MagicMock()
     with patch.object(mock_auth,
                       'secgroup_delete', MagicMock(return_value='A')):
         self.assertTrue(nova.secgroup_delete('name'))
Пример #2
0
 def test_secgroup_delete(self):
     '''
     Test for Delete a secgroup to nova (nova secgroup-delete)
     '''
     self.mock_auth.side_effect = MagicMock()
     with patch.object(self.mock_auth, 'secgroup_delete',
                       MagicMock(return_value='A')):
         self.assertTrue(nova.secgroup_delete('name'))
Пример #3
0
 def test_secgroup_delete(self):
     """
     Test for Delete a secgroup to nova (nova secgroup-delete)
     """
     self.mock_auth.side_effect = MagicMock()
     with patch.object(self.mock_auth, "secgroup_delete",
                       MagicMock(return_value="A")):
         self.assertTrue(nova.secgroup_delete("name"))