def test_process_item_multi(self):
    provider = MockProviderMulti(self._default_collection)
    provider.parser = MockParserMulti()
    id = self._id('multi')
    result = provider.process_item(id)
    assert ([x.identifier for x in provider.called_with['owi_data']] == ['48446512', '48525129'])
    assert isinstance(provider.called_with['metadata'], Metadata)
    assert (provider.called_with['metadata'].primary_identifier == id)
    assert (result == id)
def test_process_item_multi(self):
    provider = MockProviderMulti(self._default_collection)
    provider.parser = MockParserMulti()
    id = self._id('multi')
    result = provider.process_item(id)
    assert ([x.identifier for x in provider.called_with['owi_data']] == ['48446512', '48525129'])
    assert isinstance(provider.called_with['metadata'], Metadata)
    assert (provider.called_with['metadata'].primary_identifier == id)
    assert (result == id)