~osomon/software-center/too_many_refreshes

« back to all changes in this revision

Viewing changes to test/test_htmlize.py

  • Committer: Michael Vogt
  • Date: 2010-04-14 22:42:14 UTC
  • mfrom: (685.1.2 improve-html)
  • Revision ID: michael.vogt@ubuntu.com-20100414224214-ijdf76a2xec8jx74
merged lp:~zkrynicki/software-center/improve-html, many thanks
(final bits for LP: #455320), add simple test

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
 
 
3
from softwarecenter.utils import htmlize_package_desc
 
4
 
 
5
 
 
6
d = """
 
7
File-roller is an archive manager for the GNOME environment. It allows you to:
 
8
 
 
9
* Create and modify archives.
 
10
* View the content of an archive.
 
11
* View a file contained in an archive.
 
12
* Extract files from the archive.
 
13
File-roller supports the following formats:
 
14
* Tar (.tar) archives, including those compressed with
 
15
  gzip (.tar.gz, .tgz), bzip (.tar.bz, .tbz), bzip2 (.tar.bz2, .tbz2),
 
16
  compress (.tar.Z, .taz), lzip (.tar.lz, .tlz), lzop (.tar.lzo, .tzo),
 
17
  lzma (.tar.lzma) and xz (.tar.xz)
 
18
* Zip archives (.zip)
 
19
* Jar archives (.jar, .ear, .war)
 
20
* 7z archives (.7z)
 
21
* iso9660 CD images (.iso)
 
22
* Lha archives (.lzh)
 
23
* Single files compressed with gzip (.gz), bzip (.bz), bzip2 (.bz2),
 
24
  compress (.Z), lzip (.lz), lzop (.lzo), lzma (.lzma) and xz (.xz)
 
25
File-roller doesn't perform archive operations by itself, but relies on standard tools for this.
 
26
"""
 
27
 
 
28
 
 
29
html_descr = "\n".join(htmlize_package_desc(d))
 
30
print html_descr