예제 #1
0
파일: test_nova.py 프로젝트: bsemar/IntCont
 def test_boot(self):
     '''
     Test for Boot (create) a new instance
     '''
     self.mock_auth.side_effect = MagicMock()
     with patch.object(self.mock_auth, 'boot', MagicMock(return_value='A')):
         self.assertTrue(nova.boot('name'))
예제 #2
0
 def test_boot(self):
     """
     Test for Boot (create) a new instance
     """
     self.mock_auth.side_effect = MagicMock()
     with patch.object(self.mock_auth, "boot", MagicMock(return_value="A")):
         self.assertTrue(nova.boot("name"))
예제 #3
0
파일: nova_test.py 프로젝트: DaveQB/salt
 def test_boot(self, mock_auth):
     '''
     Test for Boot (create) a new instance
     '''
     mock_auth.side_effect = MagicMock()
     with patch.object(mock_auth,
                       'boot', MagicMock(return_value='A')):
         self.assertTrue(nova.boot('name'))