@@ -109,7 +109,7 @@ def test_try_parse_age_verified_field_age_over():
109
109
110
110
ActivityDetails .try_parse_age_verified_field (activity_details , activity_details .field , None )
111
111
assert activity_details .user_profile ['is_age_verified' ] is True
112
- assert activity_details .profile ['is_age_verified' ].get_value () is True
112
+ assert activity_details .profile ['is_age_verified' ].value is True
113
113
114
114
115
115
def test_try_parse_age_verified_field_age_under ():
@@ -118,7 +118,7 @@ def test_try_parse_age_verified_field_age_under():
118
118
119
119
ActivityDetails .try_parse_age_verified_field (activity_details , activity_details .field , None )
120
120
assert activity_details .user_profile ['is_age_verified' ] is False
121
- assert activity_details .profile ['is_age_verified' ].get_value () is False
121
+ assert activity_details .profile ['is_age_verified' ].value is False
122
122
123
123
124
124
def test_try_parse_age_verified_field_non_bool_value_throws_error ():
@@ -160,7 +160,7 @@ def test_try_parse_structured_postal_address_uk():
160
160
assert actual_structured_postal_address_user_profile [FORMATTED_ADDRESS_KEY ] == FORMATTED_ADDRESS_VALUE
161
161
162
162
actual_structured_postal_address_profile = activity_details .profile [
163
- config .ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ].get_value ()
163
+ config .ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ].value
164
164
165
165
assert type (actual_structured_postal_address_profile ) is collections .OrderedDict
166
166
assert actual_structured_postal_address_profile [ADDRESS_FORMAT_KEY ] == ADDRESS_FORMAT_VALUE
@@ -214,7 +214,7 @@ def test_try_parse_structured_postal_address_india():
214
214
assert actual_structured_postal_address_user_profile [FORMATTED_ADDRESS_KEY ] == INDIA_FORMATTED_ADDRESS_VALUE
215
215
216
216
actual_structured_postal_address_profile = activity_details .profile [
217
- config .ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ].get_value ()
217
+ config .ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ].value
218
218
219
219
assert type (actual_structured_postal_address_profile ) is collections .OrderedDict
220
220
assert actual_structured_postal_address_profile [ADDRESS_FORMAT_KEY ] == INDIA_FORMAT_VALUE
@@ -263,7 +263,7 @@ def test_try_parse_structured_postal_address_usa():
263
263
assert actual_structured_postal_address_user_profile [FORMATTED_ADDRESS_KEY ] == USA_FORMATTED_ADDRESS_VALUE
264
264
265
265
actual_structured_postal_address_profile = activity_details .profile [
266
- config .ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ].get_value ()
266
+ config .ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ].value
267
267
268
268
assert type (actual_structured_postal_address_profile ) is collections .OrderedDict
269
269
assert actual_structured_postal_address_profile [ADDRESS_FORMAT_KEY ] == USA_FORMAT_VALUE
@@ -319,7 +319,7 @@ def test_try_parse_structured_postal_address_nested_json():
319
319
assert actual_structured_postal_address_user_profile [FORMATTED_ADDRESS_KEY ] == formatted_address_json
320
320
321
321
actual_structured_postal_address_profile = activity_details .profile [
322
- config .ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ].get_value ()
322
+ config .ATTRIBUTE_STRUCTURED_POSTAL_ADDRESS ].value
323
323
324
324
assert type (actual_structured_postal_address_profile ) is collections .OrderedDict
325
325
assert actual_structured_postal_address_profile [ADDRESS_FORMAT_KEY ] == ADDRESS_FORMAT_VALUE
@@ -348,4 +348,4 @@ def test_set_address_to_be_formatted_address():
348
348
ActivityDetails .set_address_to_be_formatted_address_if_null (activity_details , None )
349
349
350
350
assert activity_details .user_profile [config .ATTRIBUTE_POSTAL_ADDRESS ] == FORMATTED_ADDRESS_VALUE
351
- assert activity_details .profile [config .ATTRIBUTE_POSTAL_ADDRESS ].get_value () == FORMATTED_ADDRESS_VALUE
351
+ assert activity_details .profile [config .ATTRIBUTE_POSTAL_ADDRESS ].value == FORMATTED_ADDRESS_VALUE
0 commit comments