def test_accumulateAdditionalOptions(self):
        """
        Test that we pick up options that are only defined by having an
        appropriately named method on your Options class,
        e.g. def opt_foo(self, foo)
        """
        opts = TestOptions2()
        ag = zshcomp.ArgumentsGenerator('dummy_cmd', opts, 'dummy_value')

        self.failUnless('nocrash' in ag.optFlags_d and \
                        'nocrash' in ag.optAll_d)
        self.failUnless('difficulty' in ag.optParams_d and \
                        'difficulty' in ag.optAll_d)
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_zshcomp.py/ZshcompTestCase.test_accumulateAdditionalOptions/original