Exemple #1
0
 def test_server_show(self, mock_auth):
     '''
     Test for Return detailed information for an active server
     '''
     mock_auth.side_effect = MagicMock()
     with patch.object(mock_auth,
                       'server_show', MagicMock(return_value='A')):
         self.assertTrue(nova.server_show('serv_id'))
Exemple #2
0
 def test_server_show(self):
     '''
     Test for Return detailed information for an active server
     '''
     self.mock_auth.side_effect = MagicMock()
     with patch.object(self.mock_auth, 'server_show',
                       MagicMock(return_value='A')):
         self.assertTrue(nova.server_show('serv_id'))
 def test_server_show(self):
     """
     Test for Return detailed information for an active server
     """
     self.mock_auth.side_effect = MagicMock()
     with patch.object(self.mock_auth, "server_show",
                       MagicMock(return_value="A")):
         self.assertTrue(nova.server_show("serv_id"))