python3: Use 'str' not b'str' for user test data

These "user" test data are similar to ones that are initialized from
JSON.  So it makes more sense to define them as str not binary_type.

Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
IWAMOTO Toshihiro 2015-06-30 17:01:53 +09:00 committed by FUJITA Tomonori
parent 7984bf5035
commit 464f56070d
2 changed files with 3 additions and 3 deletions

View File

@ -171,7 +171,7 @@ class Test_OXM(unittest.TestCase):
self._test(user, on_wire, 10)
def test_basic_unknown_nomask(self):
user = ('field_100', b'aG9nZWhvZ2U=')
user = ('field_100', 'aG9nZWhvZ2U=')
on_wire = (
b'\x00\x00\xc8\x08'
b'hogehoge'
@ -179,7 +179,7 @@ class Test_OXM(unittest.TestCase):
self._test(user, on_wire, 4)
def test_basic_unknown_mask(self):
user = ('field_100', (b'aG9nZWhvZ2U=', b'ZnVnYWZ1Z2E='))
user = ('field_100', ('aG9nZWhvZ2U=', 'ZnVnYWZ1Z2E='))
on_wire = (
b'\x00\x00\xc9\x10'
b'hogehoge'

View File

@ -108,7 +108,7 @@ class Test_OXS(unittest.TestCase):
self._test(user, on_wire, 4)
def test_basic_unknown(self):
user = ('field_100', b'aG9nZWhvZ2U=')
user = ('field_100', 'aG9nZWhvZ2U=')
on_wire = (
b'\x00\x00\xc8\x08'
b'hogehoge'