def test_volume_attach(self, mock_auth): ''' Test for Attach a block storage volume ''' mock_auth.side_effect = MagicMock() with patch.object(mock_auth, 'volume_attach', MagicMock(return_value='A')): self.assertTrue(nova.volume_attach('name', 'serv_name'))
def test_volume_attach(self): ''' Test for Attach a block storage volume ''' self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, 'volume_attach', MagicMock(return_value='A')): self.assertTrue(nova.volume_attach('name', 'serv_name'))
def test_volume_attach(self): """ Test for Attach a block storage volume """ self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, "volume_attach", MagicMock(return_value="A")): self.assertTrue(nova.volume_attach("name", "serv_name"))