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'))
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"))
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'))