Fix test_provider_token_expiration_validation transient failure

The keystone.tests.test_token_provider.TestTokenProvider.
test_provider_token_expiration_validation test would fail if the
tests weren't run before the expiration period passed. This could
happen if the system was slow and the previous tests took a long
time causing a potential transient failure.

Change-Id: I123aadd55770002fe1c9ed9b17669d5212198aa3
Closes-Bug: #1278550
Use assertIn in test_v3_catalog

assertEqual was used where assertIn should have been. assertIn
will provide a more useful error message.

Change-Id: I97ccbb8579ea726fd76c520d0573fdcbf5a261d7
Use assertIsNone when comparing against None

Automatic enforcement of this rule is added in:
https://review.openstack.org/78119

bp more-code-style-automation

Change-Id: I3969d7595494d5df5bdb072234f2facc6000ab30
test_v3_token_id correctly hash token

The test_v3_token_id test was calculating the token hash by
parsing the response JSON and generating a new JSON document.
This isn't guaranteed to work because a Python dict can have its
fields in any order[1], so the new JSON document may not match the
response JSON and you'd get a different hash. The correct way to
generate a token hash is to use the response as is.

[1] http://docs.python.org/2/library/stdtypes.html#dict.items

Change-Id: I1a79c252916c4459fdc75a6e022d72c0c14582ef
Imported Translations from Transifex

Change-Id: I80ac7e161265e55ef496ab1c2c43b71789ab126e
Merge "Use assertIsNone when comparing against None"
Merge "test_v3_token_id correctly hash token"
Merge "Use assertIn in test_v3_catalog"
Merge "Fix test_provider_token_expiration_validation transient failure"