def test_releaseNameDefaultsToRpmfileValue(self):
        config = tap2rpm.MyOptions()
        config.parseOptions([
                "--rpmfile", "beans",
                "--set-version", "1.2.3",
            ])

        self.assertEquals(config['release-name'], 'beans-1.2.3')
The release-name option is calculated from rpmfile and set-version.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/scripts/test/test_tap2rpm.py/TestTap2RPM.test_releaseNameDefaultsToRpmfileValue