@@ -929,10 +929,16 @@ def test_get_unity_formatted_collection_id(self):
929929 GranulesCatalog .get_unity_formatted_collection_id ('NA' , ('LOCAL' , None ))
930930 self .assertTrue (str (context .exception ).startswith ('missing project or venue' ))
931931
932- result = GranulesCatalog .get_unity_formatted_collection_id ('NA ' , ('LOCAL' , 'DEV' ))
933- self .assertEqual (result , 'URN:NASA:UNITY:LOCAL:DEV:NA ' , f'wrong collection id output' )
932+ result = GranulesCatalog .get_unity_formatted_collection_id ('NA__FOO ' , ('LOCAL' , 'DEV' ))
933+ self .assertEqual (result , 'URN:NASA:UNITY:LOCAL:DEV:NA__FOO___001 ' , f'wrong collection id output' )
934934
935935 result = GranulesCatalog .get_unity_formatted_collection_id ('URN:JPL:IDS:LOCAL1:DEV2:A:B:C:D:E:F:G' , ('LOCAL' , 'DEV' ))
936- self .assertEqual (result , 'URN:JPL:IDS:LOCAL1:DEV2:A:B:C:D:E:F:G' , f'wrong collection id output' )
936+ self .assertEqual (result , 'URN:JPL:IDS:LOCAL1:DEV2:A:B:C:D:E:F:G___001' , f'wrong collection id output' )
937+
938+ result = GranulesCatalog .get_unity_formatted_collection_id ('NA___HELLO' , ('LOCAL' , 'DEV' ))
939+ self .assertEqual (result , 'URN:NASA:UNITY:LOCAL:DEV:NA___HELLO' , f'wrong collection id output' )
940+
941+ result = GranulesCatalog .get_unity_formatted_collection_id ('URN:JPL:IDS:LOCAL1:DEV2:A:B:C:D:E:F:G___FOO' , ('LOCAL' , 'DEV' ))
942+ self .assertEqual (result , 'URN:JPL:IDS:LOCAL1:DEV2:A:B:C:D:E:F:G___FOO' , f'wrong collection id output' )
937943
938944 return
0 commit comments