@@ -670,6 +670,26 @@ def test_tags_with_stabilization(self):
670670 with self .assertRaises (exns .DeprecatedStabilizationBranch ):
671671 self .finalize_cascade (branches , tags , destination , fixver )
672672
673+ def test_with_v_prefix (self ):
674+ destination = 'development/4.3'
675+ branches = OrderedDict ({
676+ 1 : {'name' : 'stabilization/4.3.18' , 'ignore' : True },
677+ 2 : {'name' : 'development/4.3' , 'ignore' : False },
678+ 3 : {'name' : 'stabilization/5.1.4' , 'ignore' : True },
679+ 4 : {'name' : 'development/5.1' , 'ignore' : False },
680+ 5 : {'name' : 'development/10.0' , 'ignore' : False }
681+ })
682+ # mix and match tags with v prefix and without
683+ tags = ['4.3.16' , '4.3.17' , '4.3.18_rc1' ,
684+ 'v5.1.3' , 'v5.1.4_rc1' , 'v10.0.1' ]
685+ fixver = ['4.3.19' , '5.1.5' , '10.0.2' ]
686+ self .finalize_cascade (branches , tags , destination , fixver )
687+ # only tags with v prefix
688+ v_tags = ['v4.3.16' , 'v4.3.17' , 'v4.3.18_rc1' , 'v5.1.3' ,
689+ 'v5.1.4_rc1' , 'v10.0.1' ]
690+ # expect the same result
691+ self .finalize_cascade (branches , v_tags , destination , fixver )
692+
673693 def test_retry_handler (self ):
674694 class DummyError (Exception ):
675695 pass
0 commit comments