1212 obtain_name_field_location ,
1313 patient_and_practitioner_value_and_index ,
1414)
15- from models .utils .validation_utils import validate_identifiers_match , validate_resource_version_matches
15+ from models .utils .validation_utils import validate_identifiers_match , validate_resource_versions_match
1616from testing_utils .generic_utils import (
1717 load_json_data ,
1818)
@@ -280,12 +280,12 @@ def test_obtain_name_field_location(self):
280280 result = obtain_name_field_location (imms , resource_type , name_value )
281281 self .assertEqual (result , expected_location )
282282
283- def test_validate_resource_version_matches_passes_when_version_matches (self ):
284- """Tests validate_resource_version_matches passes when the resource versions match"""
285- self .assertIsNone (validate_resource_version_matches (3 , 3 , "12345-id" ))
283+ def test_validate_resource_versions_match_passes_when_version_matches (self ):
284+ """Tests validate_resource_versions_match passes when the resource versions match"""
285+ self .assertIsNone (validate_resource_versions_match (3 , 3 , "12345-id" ))
286286
287- def test_validate_resource_version_matches_raises_error_when_versions_do_not_match (self ):
288- """Tests validate_resource_version_matches raises a InconsistentResourceVersion when the versions do not
287+ def test_validate_resource_versions_match_raises_error_when_versions_do_not_match (self ):
288+ """Tests validate_resource_versions_match raises a InconsistentResourceVersion when the versions do not
289289 match"""
290290 test_cases = [
291291 (
@@ -299,7 +299,7 @@ def test_validate_resource_version_matches_raises_error_when_versions_do_not_mat
299299 for actual_version , expected_error in test_cases :
300300 with self .subTest (actual_version = actual_version , expected_error = expected_error ):
301301 with self .assertRaises (InconsistentResourceVersion ) as error :
302- validate_resource_version_matches (3 , actual_version , "12345-id" )
302+ validate_resource_versions_match (3 , actual_version , "12345-id" )
303303
304304 self .assertEqual (str (error .exception ), expected_error )
305305
0 commit comments