def test_doc_trailing_trumps_detached(): meta = make_doc_meta(trailing='spam', detached=['eggs']) assert meta.doc == 'spam'
def test_doc_detached_joined(): meta = make_doc_meta(detached=['foo', 'bar']) assert meta.doc == 'foo\n\nbar'
def test_doc_leading_trumps_all(): meta = make_doc_meta(leading='foo', trailing='bar', detached=['baz']) assert meta.doc == 'foo'