@mock.patch('compose.service.log', autospec=True)
def test_pull_image(self, mock_log):
    service = Service('foo', client=self.mock_client, image='someimage:sometag')
    service.pull()
    self.mock_client.pull.assert_called_once_with('someimage', tag='sometag', stream=True, platform=None)
    mock_log.info.assert_called_once_with('Pulling foo (someimage:sometag)...')
@mock.patch('compose.service.log', autospec=True)
def test_pull_image(self, mock_log):
    service = Service('foo', client=self.mock_client, image='someimage:sometag')
    service.pull()
    self.mock_client.pull.assert_called_once_with('someimage', tag='sometag', stream=True, platform=None)
    mock_log.info.assert_called_once_with('Pulling foo (someimage:sometag)...')