Exemple #1
0
 def test_secgroup_list(self):
     '''
     Test for Return a list of available security groups (nova items-list)
     '''
     self.mock_auth.side_effect = MagicMock()
     with patch.object(self.mock_auth, 'secgroup_list',
                       MagicMock(return_value='A')):
         self.assertTrue(nova.secgroup_list())
Exemple #2
0
 def test_secgroup_list(self, mock_auth):
     '''
     Test for Return a list of available security groups (nova items-list)
     '''
     mock_auth.side_effect = MagicMock()
     with patch.object(mock_auth,
                       'secgroup_list', MagicMock(return_value='A')):
         self.assertTrue(nova.secgroup_list())