Remove lxml from requirements

Module lxml seems to be unused in oslo, so we removed it from
requirements.txt

Change-Id: I68627f9d430f184a2daf4e8e4623d0d679ddbce1
excutils: replace unicode by six.u

This makes it more Python 3 compatible.

Change-Id: If640e551905836124657c79ab624e5717a0033a6
Remove underscore tests.init hack

This seems not needed anymore as tests pass without it, and it's not
Python 3 comptaible.

Change-Id: I93d161ea0b956b8e9560275453347a33dfeccf7c
Remove useless unit test codes in test_policy

After some bug fixes patch merged, some unit test codes are
no longer valid, this patch clean those useless unit test
codes.

Related commits
3626b6db91ce1e897d1993fb4e13ac4237d04b7f
e4ac367561b3811a9cd94e51accdf8045b7d6adc

Fixes bug #1204563

Change-Id: I592d8cd8ac0b4e54d82e349a7dec6fa98c31a92f
Don't need to init testr in run_tests.sh

In run_tests.sh, function init_testr will initialize testr if the
directory .testrepository is not existed. Actually, testr will do
the check before run the test:

In Python package testrepository,
setuptools_command.py:Testr.run

68 def run(self):
69 """Set up testr repo, then run testr"""
70     if not os.path.isdir(".testrepository"):
71         self._run_testr("init")

So, init_testr can be removed safely.

Fixes Bug #1222688
Change-Id: I51e73efe4e9b80bbf0159a5bce0db81fc049b9ce
Fix os.getlogin() problem with no tty

Catch OSError(s) from  os.getlogin() and fall back to looking at
environment variables to figure out the user's name. The OSError
is thrown where there is no tty for the python process when
os.getlogin() is called.

Fixes LP: 1221491

Change-Id: Id6634921cdf0deb77cf32a5b9101ec475946aa81
Merge "Remove useless unit test codes in test_policy"
Merge "Fix os.getlogin() problem with no tty"
Translate all substitution elements of a Message object

Some Messages are created with further Message object substitutions.
E.g.:

    msg = _('Message 1: %(msg_2)s') % {'msg_2': _('Message 2')}

The problem is that we were only translating the base Message but not
the Message substitutions within, thus in those cases Messages were only
being partially translated.

The fix sets the locale property for all Message substitution parameters
upon setting it on the base Message.

Fixes bug: #1221808

Change-Id: Ic3119df23a090cfaa160c1461e955f0af55fe1cf
Merge "Remove underscore tests.init hack"
Merge "Don't need to init testr in run_tests.sh"
Merge "excutils: replace unicode by six.u"
Merge "Remove lxml from requirements"