def METHOD_NAME(self):
    """Test tag patterns."""
    test_cases = {
        "0.3": "0.3",
        "v0.3": "0.3",
        "release0.3": "0.3",
        "Release-0.3": "0.3",
        "v0.3rc1": "0.3rc1",
        "v0.3-rc1": "0.3-rc1",
        "v0.3-rc.1": "0.3-rc.1",
        "version 0.3": "0.3",
        "version_0.3_rc_1": "0.3_rc_1",
        "v1": "1",
        "0.3rc1": "0.3rc1",
    }
    for testcase, version in test_cases.items():
        matches = re.match(release_robot.PATTERN, testcase)
        self.assertEqual(matches.group(1), version)