def test__single(self):
    provider = IdentifierLookupCoverageProvider(self._default_collection)
    provider.parser = MockParserSingle()
    (tree, identifier) = (self._tree('single'), self._id('single'))
    metadata = self._blank_metadata(identifier)
    provider._single(tree, metadata)
    result = provider.parser.called_with
    assert ((result.primary_identifier.type, result.primary_identifier.identifier) == (Identifier.ISBN, self.SINGLE_ISBN))
def test__single(self):
    provider = IdentifierLookupCoverageProvider(self._default_collection)
    provider.parser = MockParserSingle()
    (tree, identifier) = (self._tree('single'), self._id('single'))
    metadata = self._blank_metadata(identifier)
    provider._single(tree, metadata)
    result = provider.parser.called_with
    assert ((result.primary_identifier.type, result.primary_identifier.identifier) == (Identifier.ISBN, self.SINGLE_ISBN))