Avoid recursion in setting next URL after login

Signed-off-by: Michal Čihař <michal@cihar.com>
Add translated attribute to MockUnit

Signed-off-by: Michal Čihař <michal@cihar.com>
PEP-8 for comments

Signed-off-by: Michal Čihař <michal@cihar.com>
PEP-8 for not in conditions

Signed-off-by: Michal Čihař <michal@cihar.com>
PEP-8 for comments

Signed-off-by: Michal Čihař <michal@cihar.com>