예제 #1
0
파일: nova_test.py 프로젝트: DaveQB/salt
 def test_image_list(self, mock_auth):
     '''
     Test for Return a list of available images
      (nova images-list + nova image-show)
     '''
     mock_auth.side_effect = MagicMock()
     with patch.object(mock_auth,
                       'image_list', MagicMock(return_value='A')):
         self.assertTrue(nova.image_list())
예제 #2
0
파일: test_nova.py 프로젝트: bsemar/IntCont
 def test_image_list(self):
     '''
     Test for Return a list of available images
      (nova images-list + nova image-show)
     '''
     self.mock_auth.side_effect = MagicMock()
     with patch.object(self.mock_auth, 'image_list',
                       MagicMock(return_value='A')):
         self.assertTrue(nova.image_list())
예제 #3
0
 def test_image_list(self):
     """
     Test for Return a list of available images
      (nova images-list + nova image-show)
     """
     self.mock_auth.side_effect = MagicMock()
     with patch.object(self.mock_auth, "image_list",
                       MagicMock(return_value="A")):
         self.assertTrue(nova.image_list())