def test_keypair_list(self, mock_auth): ''' Test for Return a list of available keypairs (nova keypair-list) ''' mock_auth.side_effect = MagicMock() with patch.object(mock_auth, 'keypair_list', MagicMock(return_value='A')): self.assertTrue(nova.keypair_list())
def test_keypair_list(self): ''' Test for Return a list of available keypairs (nova keypair-list) ''' self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, 'keypair_list', MagicMock(return_value='A')): self.assertTrue(nova.keypair_list())
def test_keypair_list(self): """ Test for Return a list of available keypairs (nova keypair-list) """ self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, "keypair_list", MagicMock(return_value="A")): self.assertTrue(nova.keypair_list())