Fixed tests for uuid type

This commit is contained in:
Rob McMullen 2017-05-19 23:12:31 -07:00
parent 8260774995
commit 017dd81734
1 changed files with 5 additions and 1 deletions

View File

@ -21,7 +21,11 @@ class TestSegment(object):
for k, v in state.items():
print("k=%s v=%s type=%s" % (k, v, type(v)))
byte_type = type(str(u' ').encode('utf-8')) # py2 and py3
assert type(state['uuid']) == byte_type
try:
u = unicode(" ")
except:
u = str(" ")
assert type(state['uuid']) == type(u)
def test_extra(self):
s = self.segment