def test_get_messages(self): """Test for the get_messages function.""" data = {'responses': [{'errorCode': 422, 'message': 'error'}]} assert _get_messages(data) == ['422: error']
def test_get_messages(self): """Test for the get_messages function.""" data = {"responses": [{"errorCode": 422, "message": "error"}]} assert _get_messages(data) == ['422: error']