コード例 #1
0
 def get_version_num_from_tag_name(self, tag_name):
     return util.get_pattern_from_string(tag_name, self.version_num_pattern)
コード例 #2
0
 def test_get_pattern_from_string_returns_as_expected(self):
     pattern = "\\d\\.\\d\\.\\d\\.\\d"
     string = "stringcontainin1.2.3.4init"
     eq_("1.2.3.4", util.get_pattern_from_string(string, pattern))