def create_metadata(self, form): formatter = AOFRFormatter() metadata = formatter.toString(self.paper, 'article.pdf', form, pretty=True) return metadata
def test_generate_metadata_doi(self): # f = AOFRFormatter() dois = ['10.1175/jas-d-15-0240.1'] for doi in dois: Paper.create_by_doi(doi)