functional: Replace unicode() with six.u()

unicode() is not present in Python 3

Change-Id: I1a6487d5c46884bf95704e3fd726e78c1dde9517
This commit is contained in:
Jakub Libosvar 2017-06-21 13:53:31 +00:00
parent 05c22d6199
commit b12e0f01fc
1 changed files with 2 additions and 2 deletions

View File

@ -1287,11 +1287,11 @@ class TestDvrRouter(framework.L3AgentTestFramework):
str(net_addr_2) + '/' +
str(fixed_ips_2[0]['prefixlen']))
expected_routes = [{'dev': fpr_device_name,
'cidr': unicode(route_cidr_1),
'cidr': six.u(route_cidr_1),
'via': str(rtr_2_fip.ip),
'table': 'main'},
{'dev': fpr_device_name,
'cidr': unicode(route_cidr_2),
'cidr': six.u(route_cidr_2),
'via': str(rtr_2_fip.ip),
'table': 'main'}]
# Comparing the static routes for both internal interfaces on the