pep8: fixed F821 violation in a unit test

The _ symbol should have been imported explicitly. Actually, there is no
use case for translatable messages in unit tests, it's just a waste of
translator time to mark it as such. The patch removes the translation
marker for good.

Change-Id: I76bef710a1030dcb4eb35778ebf44ed600016f17
Closes-Bug: #1611400
This commit is contained in:
Ihar Hrachyshka 2016-08-09 16:32:33 +02:00
parent 58b06333b8
commit a200f4a7b6
1 changed files with 1 additions and 1 deletions

View File

@ -2928,7 +2928,7 @@ class L3NatTestCaseBase(L3NatTestCaseMixin):
def mock_fail__validate_router_port_info(ctx, router, port_id):
# Fail with raising BadRequest exception
msg = _("Failure mocking...")
msg = "Failure mocking..."
raise n_exc.BadRequest(resource='router', msg=msg)
def mock_update_port_with_transaction(ctx, id, port):