Esempio n. 1
0
 def test_keypair_delete(self, mock_auth):
     '''
     Test for Add a keypair to nova (nova keypair-delete)
     '''
     mock_auth.side_effect = MagicMock()
     with patch.object(mock_auth,
                       'keypair_delete', MagicMock(return_value='A')):
         self.assertTrue(nova.keypair_delete('name'))
Esempio n. 2
0
 def test_keypair_delete(self):
     '''
     Test for Add a keypair to nova (nova keypair-delete)
     '''
     self.mock_auth.side_effect = MagicMock()
     with patch.object(self.mock_auth, 'keypair_delete',
                       MagicMock(return_value='A')):
         self.assertTrue(nova.keypair_delete('name'))
Esempio n. 3
0
 def test_keypair_delete(self):
     """
     Test for Add a keypair to nova (nova keypair-delete)
     """
     self.mock_auth.side_effect = MagicMock()
     with patch.object(self.mock_auth, "keypair_delete",
                       MagicMock(return_value="A")):
         self.assertTrue(nova.keypair_delete("name"))