Use mox3 rather than mox

mox3 is a port of mox to Python 3, and it's also compatible with Python 2.6 and
2.7.

Partial-Bug: 1287323
Change-Id: I6caad9da450a6821ba5d2dab607106ddf9d743fd
TestResponse: use a default status code

The status_code field is compared to integers in the requests library, so it
has to be set to an integer, not to None. This works in Python 2 because back
then, one could compare an int to NoneType.

Partial-Bug: 1287323
Change-Id: I7138ceca36692fdf5948c4d6f74186f89c2709f0
Make Hacking E1XX compliant

E121 continuation line indentation is not a multiple of four
E126 continuation line over-indented for hanging indent
E127 continuation line over-indented for visual indent
E128 continuation line under-indented for visual indent

A part of blueprint openstack-hacking-compliant

Change-Id: I06ce0ee5132178a777ce9b9e409ef1d24af1ea1f
Fix remaining PEP8 (E***) and PyFlakes (F***) issues

E502 the backslash is redundant between brackets
E501 line too long (XX > 79 characters)
F841 local variable 'XXX' is assigned to but never used

Remove F403 and F999 from ignore list because there is
no violations related to these.

The remaining are all from OpenStack Hacking (H***) rules.

A part of blueprint openstack-hacking-compliant

Change-Id: I0fb46309621c15dfe4363039bbe46669f1315dec
Fix H306 imports not in alphabetical order

Remove the following rules from ignore list
without any violations from these:
H201,H302,H303,H701,H702,H803

A part of blueprint openstack-hacking-compliant

Change-Id: I4e43e13234f7640ef216db168d873c4cc1198328
Add tox env to build docs

In django-based projects, we need to specify DJANGO_SETTINGS_MODULE
when running docs build. It is required to addresses the failure of
docs build job in the gate.

Change-Id: I33a867bc00c70f333c4dc62add411f833e418424
Closes-Bug: #1302532
Merge "Use mox3 rather than mox"
Updated from global requirements

Change-Id: I610a3529fdb636d71520b801af5277d6bc8e556c
Fix typo of ANS1 to ASN1

Replace all occurrences of 'ANS1|ans1' with 'ASN1|asn1'.

Change-Id: I65eb72870803b019eae66b1b8a18ceeeb34b95ba
Closes-bug: 1306874
Fix whitespace issues found by Pep8 1.5.4+

Pep8 1.5.4+ fixes some bugs in whitespace related checks, so
adjust those in order to pass gating if we upgrade.

Change-Id: I8290c2b4f9b233889c3f151cdd5d8346fce8713e
Merge "Make Hacking E1XX compliant"
Merge "Fix remaining PEP8 (E***) and PyFlakes (F***) issues"
Merge "Fix H306 imports not in alphabetical order"
Merge "Add tox env to build docs"
Merge "Fix typo of ANS1 to ASN1"
Merge "Fix whitespace issues found by Pep8 1.5.4+"
Merge "TestResponse: use a default status code"
Updated from global requirements

Change-Id: I8f075f6e94dc552bf498644ff6d1c9d76aea2c2b
Adding check for service roles to match users region selection

Change-Id: Ic84ba02f3245800156011b015c757333678eaa40
Fixes: bug #1212358
Merge "Updated from global requirements"