def recognition(self): examples = ['bar', rss, atom] for value in examples: with attest.raises(imprt.InputError): imprt.wordpress(value)
def recognition(self): examples = [ 'bar', rss, atom ] for value in examples: with attest.raises(imprt.InputError): imprt.wordpress(value)
def additional_metadata(self): defaults, items = imprt.wordpress(wordpress) assert 'type' in items[1] assert items[1]['type'] == 'page' assert 'draft' in items[2] assert items[2]['draft']
def defaults(self): defaults, items = imprt.wordpress(wordpress) entry = items[0] for key in 'title', 'link', 'content', 'date', 'author', 'tags': assert key in entry assert len(entry['tags']) == 1