def METHOD_NAME(self):
    output = self.get_article('[attachment:1 title:"Test title 2" size]')
    expected = (
        r'<span class="attachment"><a href=".*attachments/download/1/"'
        r' title="Click to download test\.txt">\s*Test title 2 \[25[^b]bytes\]\s*</a>'
    )
    self.assertRegexpMatches(output, expected)