def test_server_list(self, mock_auth): ''' Test for Return list of active servers ''' mock_auth.side_effect = MagicMock() with patch.object(mock_auth, 'server_list', MagicMock(return_value='A')): self.assertTrue(nova.server_list())
def test_server_list(self): ''' Test for Return list of active servers ''' self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, 'server_list', MagicMock(return_value='A')): self.assertTrue(nova.server_list())
def test_server_list(self): """ Test for Return list of active servers """ self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, "server_list", MagicMock(return_value="A")): self.assertTrue(nova.server_list())