def test_optionsDefaultToProtocolValue(self):
        config = tap2rpm.MyOptions()
        config.parseOptions([
                '--tapfile', 'sausages.tap',
                '--protocol', 'eggs',
            ])

        self.assertEquals(config['tapfile'], 'sausages.tap')
        self.assertEquals(config['maintainer'], 'tap2rpm')
        self.assertEquals(config['protocol'], 'eggs')
        self.assertEquals(config['description'], 'A TCP server for eggs')
        self.assertEquals(config['long_description'],
                'Automatically created by tap2rpm')
        self.assertEquals(config['set-version'], '1.0')
        self.assertEquals(config['rpmfile'], 'twisted-eggs')
        self.assertEquals(config['type'], 'tap')
        self.assertEquals(config['quiet'], False)
        self.assertEquals(config['twistd_option'], 'file')
        self.assertEquals(config['release-name'], 'twisted-eggs-1.0')
Create the announcement notice type for sending notifications when
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/scripts/test/test_tap2rpm.py/TestTap2RPM.test_optionsDefaultToProtocolValue--crossover with--dataset/ETHPy150Open brosner/django-announcements/announcements/management.py/create_notice_types