Switch tests to unittest (w/generated test cases)

Specifically:
  * add test generator
  * remove all direct printings to stdout (reporting should be done by
    the unittest)
  * close all open files (unfortunately, we cannot use with statement
    with python 2.4 compatibility)
  * iteritems -> items ... to be 3.* compatible (and we really don't
    need generators here)
  * fix Travis-CI metadata to work on whole supported range of python
    versions.
  * make installation of dependencies in travis-CI and other testing
    related stuff working independently from python version and both
    with unittest (for python >= 2.7) and unittest2 (for python < 2.7)

Signed-off-by: Matěj Cepl <mcepl@redhat.com>
Make html2text.py compatible with python 3.*

* Don't expect u'' strings to work.
* Fix nbsp_unicode test.
* Also remove workaround for python < 2.3 ... we really don’t need it
  anymore.
* Fix <pre> in list tests.
  Replace onlywhite function with RE.

  I believe that Aaron by mistake put to the html2text.py his
  contribution to the Obfuscated Python Code Contest.

  For the reasons I have no chance to decipher, I have to use RE.
  More obvious replacement with para.isspace() doesn't work.

Signed-off-by: Matěj Cepl <mcepl@redhat.com>
Fix typo ... we are not talking about line variable.
Fix metadata in setup.py, bump the minor revision.

Also fix `test` command.
Fix setup.py
Remove depreceated function has_key.

Signed-off-by: Matěj Cepl <mcepl@redhat.com>
Handle invalid literals for start attribute
We don't use special test script. Don’t lie about it.
PEP8ize whole script