'Verify that long lines in the header comment are wrapped correctly.'

def test_wrap_long_lines_in_header(self):

    catalog = Catalog(project='AReallyReallyLongNameForAProject', revision_date=datetime(2007, 4, 1))
    buf = StringIO()
    pofile.write_po(buf, catalog)
    self.assertEqual('#    Translations    template    for    AReallyReallyLongNameForAProject.\n#    Copyright    (C)    2007    ORGANIZATION\n#    This    file    is    distributed    under    the    same    license    as    the\n#    AReallyReallyLongNameForAProject    project.\n#    FIRST    AUTHOR    <EMAIL@ADDRESS>,    2007.\n#\n#,    fuzzy', '\n'.join(buf.getvalue().splitlines()[:7]))
