def test_protocolCalculatedFromTapFile(self):
        config = tap2rpm.MyOptions()
        config.parseOptions(['--tapfile', 'pancakes.tap'])

        self.assertEquals(config['tapfile'], 'pancakes.tap')
        self.assertEquals(config['protocol'], 'pancakes')
The protocol name defaults to a value based on the tapfile value.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/scripts/test/test_tap2rpm.py/TestTap2RPM.test_protocolCalculatedFromTapFile