Extends hacking check for logging to verify i18n hints

The original check would make sure that debug logging didn't use the
translation function. The check will now make sure that none of the
translation helpers are used for debug logging and that the correct
helper is used for logging statements.

bp more-code-style-automation

Change-Id: I536de5f21fe82fa3426040b8a4cfa5b81bdd5a8b
Correct use of config fixture

Some test modules weren't using the config fixture where it should
be used.

Change-Id: Ib769ae81f3714adbcdf4664f687236443731d0f5
Add import i18n to federation/controllers.py

Also, added a test to check the branch where _() was being
used in federation/controllers.py.

Change-Id: Id5b957ad6d8d3a85a614d1bd55e2c0dadd7dbd04
Merge "Extends hacking check for logging to verify i18n hints"
Merge "Correct use of config fixture"
Merge "Add import i18n to federation/controllers.py"