mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
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:
parent
7984bf5035
commit
464f56070d
@ -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'
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user