BOM-622 Type errors in content matching.

This commit is contained in:
Feanil Patel
2019-09-19 16:18:23 -04:00
parent 4eaf875741
commit 802929fde4
4 changed files with 29 additions and 29 deletions

View File

@@ -40,7 +40,7 @@ def load_serialized_data(response, key):
Extract and deserialize serialized data from the response.
"""
pattern = re.compile(u'{key}: (?P<data>\\[.*\\])'.format(key=key))
match = pattern.search(response.content)
match = pattern.search(response.content.decode('utf-8'))
serialized = match.group('data')
return json.loads(serialized)