'Fetch single attribute from TestResponse object.'

def _fetch_attribute_from_response(self, resp, parameter, assert_is_not_none=True):

    result = resp.result.get(parameter)
    if assert_is_not_none:
        self.assertIsNotNone(result)
    return result
