Simplification: we can use localhost as the default address.
Module: add a __repr__ for convenience purpose.

So in the logs we will see "<module name=livestatus />" instead of "<object xxx @0xdeadbeef>".
enh: use setproctitle from misc.common.
clean: unused active_children() and print.

not sure what was intended with the 'if not is_android' test.
Enh: still try to join the process after forced kill.
commented hackish use of a module attribute (http_daemon.daemon_inst) used as placeholder for an http_daemon instance.
clean: removed debug print
Enh: put specific test code for Android at class level instead of inside method.
Merge pull request #1347 from gst/misc_clean_enh

Misc clean enh
Tests: enh: use assertEqual(x2, x1) instead of bare assert_(x1 == x2).

This brings a more meaningful info on such a failed assert.

Used (within test directory):

sed -ri 's#assert_\(\s*([^ ]+)\s*==\s*([^ ]+)\s*\)#assertEqual(\2, \1)#' *py
Tests: enh: user assertIn(x1, x2) instead of assert_(x1 in x2).

This brings a more meaningful info on such a failed assert.

Used (within test directory):

sed -ri 's#assert_\(\s*([^ ]+)\s+in\s+([^ ]+)\s*\)#assertIn(\1, \2)#' *py
Tests: enh: use assertIsNot(x1, x2) instead of assert_(x1 is not x2).

This brings a more meaningful info on such a failed assert.

Used (within test directory):

sed -ri 's#assert_\(\s*([^ ]+)\s+is not\s+([^ ]+)\s*\)#assertIsNot(\1, \2)#' *py
Tests: enh: use assertIs(x1, x2) instead of assert_(x1 is x2).

This brings a more meaningful info on such a failed assert.

Used (within test directory):

sed -ri 's#assert_\(\s*([^ ]+)\s+is\s+([^ ]+)\s*\)#assertIs(\2, \1) *.py
better regex for 'x1 == x2' (allow spaces in x2 (for tuples, lists)):

sed -ri 's#assert_\(\s*([^ ]+)\s*==\s*(.+?)\s*\)#assertEqual(\2, \1)#' *py
better regex for 'x1 == x2' (allow spaces in x1 (for tuples, lists)):

sed -ri 's#assert_\(\s*(.+?)\s*==\s*(.+?)\s*\)#assertEqual(\2, \1)#' *py
Corrected bad sed replace.

due to bad regex.
Try unittest2 ..
corrected by replaced assert_.

due bad regex.
fixed badly transformed assert_.